Skip to main content

Module strings

Module strings 

Source

Staticsยง

HTML_TAG_REGEX ๐Ÿ”’
IETF_LANGUAGE_CODE_REGEX ๐Ÿ”’

Functionsยง

generate_easily_writable_random_string
generate_random_string
is_ietf_language_code_like
Checks whether the string is IETF language code where subtags are separated with underscore.
strip_html_tags
Removes all HTML tags from the input, leaving only the text content.
truncate_utf8_at_boundary
Truncates UTF-8 text to a max byte length at a valid char boundary.