Yogstation 13 - Modules - Types

code/__HELPERS/text.dm

/proc/sanitize Runs byond's html encoding sanitization proc, after replacing new-lines and tabs for the # character.
/proc/strip_html Runs STRIP_HTML_SIMPLE and sanitize.
/proc/strip_html_full Runs STRIP_HTML_FULL and sanitize.
/proc/adminscrub Runs STRIP_HTML_SIMPLE and byond's sanitization proc.
/proc/non_zero_min for now, we'll treat all non-ascii characters like symbols even though most are letters
/proc/sanitize_css_class_name Removes all non-alphanumerics from the text, keep in mind this can lead to id conflicts