/ Published in: JavaScript
![](/img/icon_sav.png?v3)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function stripHTML(string) { return string.replace(/<(.|\n)*?>/g, ''); }
URL: http://stackoverflow.com/questions/24816/escaping-strings-with-jquery
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)