无敌小羊历险记的博客domt -- simple DOM Templating toolMerge plain javascript objects into DOM.Support following workflow :add template attributes like bind, repeat, or [acc.sess.ors] to statichtml documentload document, ...
asdfgh0077的博客'<div class="article">This is an article</div>'.escapeHTML(); // -> "<div class="article">This is an article</div>" #3楼 编辑: 这个答案很久以前发布了,并且 htmlDecode 函数引入了XSS...