Convert special characters to HTML entities to prevent most XSS attacks

html:escape(STRING $html) : STRING

html:escape("< ! a 0 © ' \"")
#=> "&lt; ! a 0 © &#039; &quot;"

# note: this function escapes both single and double quotes
# note: compared to html:encode(), this function leaves your string more human-readable because it encodes the minimum number of characters necessary to ensure that your string is not parsed as HTML.

Copyright ©2013-2022 SunSed®. All rights reserved.