String utilities¶
state: | stable |
---|---|
dependencies: | Unidecode (optional) |
- tool.ext.strings.slugify(value)¶
If Unidecode is available, calls slugify_i18n(). If not, parses the value with a latin-only regular expression, i.e. may return empty or otherwise useless strings for non-latin strings. Usage:
>>> slugify(u'Foo? bar! 123...') u'foo-bar-123'