Javascript: Encoding Values in XML Strings for AJAX / Web 2.0

Suggested by Webmaster on Thursday January 15, 2009

I have written a very simple javascript function to do the job. The function takes a Javascript string (or any value, integer etc.) as input, converts it into a string and then replaces all occurrences of <, >, &, ", and ' with their html values.

Discussion Type: Discussion on Tutorial

Number of topics: 0

Create a new topic

 
  Login or register to create a new topic.  
 

No records to display