Encode HTML entities


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

Found at the source link - stealing and indexing :)


Copy this code and paste it in your HTML
  1. $('<div/>').text('This is fun & stuff').html(); // evaluates to "This is fun &amp; stuff"

URL: http://debuggable.com/posts/encode-html-entities-with-jquery:480f4dd6-13cc-4ce9-8071-4710cbdd56cb

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.