Replaces special characters in a string with their HTML-escaped equivalents.
HTMLEditFormat( string [, version] ) → returns string
The HTMLEditFormat function is DEPRECATED as of ColdFusion 11
- Formatting Functions
Argument Reference for the HTMLEditFormat function
A string or a variable that contains one.
HTML version to use; currently ignored.
since version 11
, which can provide more protection from XSS.
Examples sample code invoking the HTMLEditFormat function
Escapes the HTML characters
HTMLEditFormat( "This is a test & this is another <This text is in angle brackets> Previous line was blank!!!" )
Expected Result: This is a test & this is another <This text is in angle brackets> Previous line was blank!!!