Good day. I need to remove all HTML from text. The problem is - some attributes has "<" and ">" symbols in.
I use this rules:
var tmp = html.replace(/(<([^>]+)>)/ig,"") // remove tags
.replace(/\s/g, "" ); // inline
But its steal has some 0!"> from atributes. Please, see my example on JSFiddle: http://jsfiddle.net/3nn9wmy7/