Module utils

Source
Expand description

Utility functions for HTML rendering and string manipulation

Functionsยง

escape_href
Escape special characters in URLs
escape_html
Escape special HTML characters in a string
sanitize_id
Sanitize a string for use as an HTML ID
unicode_length
Count the length of a string in Unicode scalars