Javascript String HTMLDecode()

Description

Javascript String HTMLDecode()



String.prototype.HTMLDecode = function() { 
 var temp = document.createElement("div"); 
 temp.innerHTML = this; //from  w w  w.  j a v a  2s .  com
 var output = temp.innerText || temp.textContent; 
 temp = null; 
 return output; 
}



PreviousNext

Related