Easy way to HTML encode a string with jQuery Language: JavaScript function(s) { return $('<div/>').text(s).html(); } Reveal More Refactor Tweet Embed Raw Added almost 2 years ago by zdzolton