Return to Snippet

Revision: 25769
at April 8, 2010 18:59 by Jamie


Initial Code
string.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");

Initial URL

                                

Initial Description

                                

Initial Title
Escape HTML for a textarea

Initial Tags
javascript, html, code

Initial Language
JavaScript