Unescape Html Char - Node.js String

Node.js examples for String:HTML String

Description

Unescape Html Char

Demo Code

String.prototype.unescapeHtmlChar=function(){
  var tmp = this.toString();
  tmp = tmp.replace("&lt;","<");
  tmp = tmp.replace("&gt;",">");
  /*tmp = tmp.replace("&lt;","<");
  tmp = tmp.replace("&lt;","<");/*from   w ww . j  a va  2  s .  c  o  m*/
  tmp = tmp.replace("&lt;","<");*/
  return tmp;
}

Related Tutorials