function strip(html) {
var tmp = document.createElement("DIV");
tmp.innerHTML = html;
return tmp.textContent || tmp.innerText || "";
}
Taken from: https://stackoverflow.com/questions/822452/strip-html-from-text-javascript
function strip(html) {
var tmp = document.createElement("DIV");
tmp.innerHTML = html;
return tmp.textContent || tmp.innerText || "";
}
Taken from: https://stackoverflow.com/questions/822452/strip-html-from-text-javascript
0 Comments