pyufunc.slugify_text#
- pyufunc.slugify_text(text, *, delim='_', lower=True, ascii=False)#
Convert text to a slug with
boltons.strutils.slugify.- Parameters:
text – Text to slugify.
delim – Delimiter inserted between words.
lower – If True, lowercase the result.
ascii – If True, normalize to ASCII.
Note
Source package:
boltons.Source repository: mahmoud/boltons
Source document: https://boltons.readthedocs.io/en/latest/
Source license: BSD License.
Example
>>> slugify_text("Hello World") 'hello_world'
- Returns:
Slugified text.
- Return type: