jQuery Encode string to HTML entities
#decode#encode#html entities#jquery
// Encode to HTML entities $('').text('Your text with HTML Contennt').html(); // Returns "Your text with <div>HTML Contennt</div>"
// Decode from HTML entities $('').html('Your text with <div>HTML Content</div>').text(); // Returns "Your text with HTML Content"