Hi Bob90,
Thanks. But I think replacing method does not work here, as every "&" will be translated to "&" in html source code:
Code:
var a = "b & c".deentityify()
String.prototype.deentityify = function ()
{
return this.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">");
}
becomes:
Code:
var a = "b &amp; c".deentityify()
String.prototype.deentityify = function ()
{
return this.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">");
}
Am I right?
KC.
Bookmarks