PDA

View Full Version : html_entity_decode



ZwergWade
19 Oct 2009, 1:58 AM
I severly missing an equivalent to php html_entity_decode in ExtJs.

Would solve problems like this: http://www.extjs.com/forum/showthread.php?t=69501

Maybe this functionality could be included in Ext.util.Format.htmlDecode.

Meanwhile you can use this snippet:


function html_entity_decode(string) {
var temphtml=document.createElement('textarea');
temphtml.innerHTML = string;
return temphtml.value;
}