1
的htmlclean插件什么是在下面的代码行这个网站清洁用品什么是用于
$('body').html($.htmlClean($(this).html(), { allowedTags : ['a', 'ul', 'ol', 'li', 'br', 'p'] }));
的htmlclean插件什么是在下面的代码行这个网站清洁用品什么是用于
$('body').html($.htmlClean($(this).html(), { allowedTags : ['a', 'ul', 'ol', 'li', 'br', 'p'] }));
一个简单的谷歌搜索给了我以下页面: http://code.google.com/p/jquery-clean/
注意到肮脏(X)HTML并生成漂亮干净的XHTML(这将删除并清除从其他来源粘贴的HTML,例如MS Word。) 它会;
fix self closing tags lower-case tags remove non-standard attributes remove in-line style attributes remove in-line event attributes optionally remove other attributes tidy unnecessary white space and new lines remove conditional commenting remove proprietary word formatting tags replace tags e.g. i=>em optionally leave css classes in place format and indent html
它看起来就像是正在使用的JQuery HtmlClean plugin。其中“采用肮脏的脏(X)HTML并生成干净的XHTML”