Replaces special characters in a string with their HTML-escaped equivalents and inserts <pre> and </pre> tags at the beginning and end of the string.
The only difference between this function and HTMLEditFormat is that HTMLEditFormat doesn't surround the text in HTML pre tags.
htmlCodeFormat(string [, version])
→ returns string
2.0-123.2<cfset testString="This is a test & this is another <This text is in angle brackets> Previous line was blank!!!"> <cfoutput>#htmlCodeFormat(testString)#</cfoutput>
Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.