htmlencode — convert special characters to HTML entities
string htmlencode(
html)
;
string
html
;
Scans the string html for characters that commonly interfere with HTML markup and converts them into their corresponding entites. The return value is a new string with the conversions made.
This function is useful for converting user supplied text into a form which is suitable for display on an HTML page.
The following conversions are made: