Inside Coldfusion MX

"-->

HTMLCodeFormat (string [, version ])

Description

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. To apply the latest version of HTML, use 1 in the version attribute or use 2.0 or 3.2 for their HTML version equivalents.

Example

<cfset exampleString = "<h1>Test string</h1>"> <cfoutput> #HTMLCodeFormat(exampleString)# </cfoutput>

Категории