HTMLCodeFormat

"-->
 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>  


Inside ColdFusion MX
Inside Coldfusion MX
ISBN: 0735713049
EAN: 2147483647
Year: 2005
Pages: 579

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net