JavaScript Strip Tags
To get only Text from String with html tags.
function strip(html) {
var tmp = document.createElement("DIV");
tmp.innerHTML = html;
return tmp.textContent || tmp.innerText;
}
From: http://css-tricks.com/snippets/javascript/strip-html-tags-in-javascript/
Want to learn more?
Sign up to get a digest of my articles and interesting links via email every month.