Regular Expression to Strip HTML from String
Posted: July 12th, 2010 | Author: Matt | Tags: javascript, regex, snippet | No Comments »I used this in a simple reguar expression to strip html
/<(?:.|\s)*?>/g
An example of using this in a javascript function is as such…
function stripHtml(html) { return html.replace(/<(?:.|\s)*?>/g, ""); }
