byond - 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/adminscrub Runs STRIP_HTML_SIMPLE and byond's sanitization proc.
/proc/reject_bad_text Returns the text if properly formatted, or null else.
/proc/stripped_input Used to get a properly sanitized input. Returns null if cancel is pressed.
/proc/stripped_multiline_input Used to get a properly sanitized input in a larger box. Works very similarly to stripped_input.
/proc/siunit Formats a number to human readable form with the appropriate SI unit.