• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Name

XmlFormat

Synopsis

                  XMLFormat(string)

Returns string in a format that is safe to use with XML by escaping the following special characters: ampersands (&), double quotes ("), greater-than signs (>), less-than signs (<), and single quotes ('). Example:

<cfset MyString="Here is an example of the XMLFormat function: 5+5<20">
   
<cfoutput>#XMLFormat(MyString)#</cfoutput>
   
<p><I>View the page source to see the escaped text.</I>


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint