Return to Snippet

Revision: 15749
at July 15, 2009 15:09 by aahmed753


Initial Code
function stripHTML(string) { 
    return string.replace(/<(.|\n)*?>/g, ''); 
}

Initial URL
http://stackoverflow.com/questions/24816/escaping-strings-with-jquery

Initial Description

                                

Initial Title
Strip HTML using pure Javascript

Initial Tags
javascript, html

Initial Language
JavaScript