jQuery escapeHTML


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. function escapeHTML(b) {
  2. var a = $("<div />");
  3. a.text(b);
  4. return a.html()
  5. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.