Posted By

fadlee on 04/08/11


Tagged

escape html jquery


Versions (?)

jQuery escapeHTML


 / Published in: JavaScript
 

  1. function escapeHTML(b) {
  2. var a = $("<div />");
  3. a.text(b);
  4. return a.html()
  5. }

Report this snippet  

You need to login to post a comment.