[][src]Function voca_rs::manipulate::slugify

pub fn slugify(subject: &str) -> String

Slugifies the subject. Cleans the subject by replacing diacritics with corresponding latin characters.

Arguments

Example

use voca_rs::*;
manipulate::slugify("Italian cappuccino drink");
// => "italian-cappuccino-drink"
manipulate::slugify("caffé latté");
// => caffe-latte
manipulate::slugify("Хорошая статья: 'XMLHttpRequest 101 Course' \\!/");
// => khoroshaia-statia-xmlhttprequest-101-course
use voca_rs::Voca;
"Italian cappuccino drink"._slugify();
// => "italian-cappuccino-drink"