Revision: 40609
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at February 4, 2011 07:41 by crutzdesigns
Initial Code
jQuery.extend({
htmlentities : function(text){
return $('<div/>').text(text).html();
}
});
Initial URL
Initial Description
Takes a string as an argument and returns it with htmlentities
Usage:
$.htmlentities("<body>hello bob&doug</body>");
Returns:
<body>hello bob&doug</body>
Initial Title
jQuery.htmlentities
Initial Tags
Initial Language
jQuery