So you want unescape HTML objects . With simple JS, you can use this snippet:
function unescapeHTML(html) {
var div = document.createElement("DIV");
div.innerHTML = html;
return ("innerText" in div) ? div.innerText : div.textContent;
}
And with jQuery the following:
function unescapeHTML(html) {
return $("<div />").html(html).text();
}
, "" div . , HTML, . element.innerHTML element.innerText IE element.textContent .
, () .