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 over 1 year ago by zdzolton