Operator Scope of Action:
Operator First Added:
Operator Last Altered:
escapeHTML converts HTML and XML special characters in string dataStr to HTML/XML entities. For example, '<' is replaced by '<' and '&' is replaced by '&'.
For example, if the source dataStr is "this & that":
$MyString = escapeHTML("this & that") outputs
"this & that".
See also attributeEncode(), especially if working with XML strings.