Posted By

cyberhobo on 08/28/09


Tagged

html encode entity entities html-entity


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

vali29
brainwaves


Encode HTML entities


 / Published in: jQuery
 

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

Found at the source link - stealing and indexing :)

  1. $('<div/>').text('This is fun & stuff').html(); // evaluates to "This is fun &amp; stuff"

Report this snippet  

You need to login to post a comment.