BizTalk Utilities CV ,   Jobs ,   Code library
 
Home Page


Add/Edit your code items
Search the code library
Browse for the code library


JavaScript
Sticky Table Headers
Dynamically Filling HTML Select Box from XML Data Island using Javascript.
XML Basics Handbook


 
 

 LAMP >>


By John Workman
First Posted 05/19/2003
Times viewed 725

Escape special characters using JavaScript and regular expressions


Summary Remove &, <,>,",' from text before building an xml file

This javascript function allows you to pass in a string and it will return the string with the special characters escaped. It is very easy to copy the code to include more characters. objXMLDOMAttribute.text = EscapeChar("This is an <> example");

Additional information


Rate this article on a scale of 1 to 10 (0 votes, average 0)

Your vote :  

 LAMP >>





Leave a comment for this article
Your name
Your email (optional)
Your comment
Optional: Upload an attachment
Enter the code shown:

 
 

    Email TopXML