Skip to main contentModule string_utils
Source - conv_urls
- Converts URLs in text to clickable HTML links.
- convchars
- Replaces characters found in
chars with underscores. - getvalue
- Returns
None if the string is empty or “NONE”, otherwise returns Some. - obfuscate_email_address
- Obfuscates an email address using HTML numeric character references.
- oneunre
- Strips a single reply/forward prefix from a subject line.
- parse_url
- Attempts to parse a URL from the start of a string, writing it into
url. - spamify
- Applies spam protection to email addresses in a string.
- stripzone
- Strips trailing parenthetical timezone info from a date string.
- unobfuscate_email_address
- Reverses HTML numeric character reference obfuscation back to plain text.
- unre
- Strips reply prefixes from email subjects.