Return to Snippet

Revision: 17254
at August 28, 2009 14:46 by cyberhobo


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

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

Initial Description
Found at the source link - stealing and indexing :)

Initial Title
Encode HTML entities

Initial Tags
html

Initial Language
jQuery