Posted By

saturngod on 07/22/10


Tagged

htmlentities


Versions (?)

HTML entities


 / Published in: JavaScript
 

URL: http://www.arkinex.com/javascript/js-functions/26/javascript-function-htmlentities/

  1. function html_entity_decode(s) {
  2. var t=document.createElement(’textarea’);
  3. t.innerHTML = s;
  4. var v = t.value;
  5. t.parentNode.removeChild(t);
  6. return v;
  7. }

Report this snippet  

You need to login to post a comment.