用jquery实现HtmlEncode与HtmlDecode

I use these functions:html function htmlEncode(value){ return $('<div/>').text(value).html(); } function htmlDecode(value){ return $('<div/>').html(value).text(); } Basically a div element is cre
相关文章
相关标签/搜索