Ticket #656: striptags.patch
| File striptags.patch, 0.8 kB (added by mokhet, 6 years ago) |
|---|
-
htmlarea.js
2310 2310 } 2311 2311 node.style.cssText = declarations.join("; "); 2312 2312 } 2313 function stripTag(el) {2314 if (HTMLArea.is_ie)2313 if (HTMLArea.is_ie) 2314 function stripTag(el) { 2315 2315 el.outerHTML = HTMLArea.htmlEncode(el.innerText); 2316 else { 2316 ++stats.mso_xmlel; 2317 } 2318 } else { 2319 function stripTag(el) { 2317 2320 var txt = document.createTextNode(HTMLArea.getInnerText(el)); 2318 2321 el.parentNode.insertBefore(txt, el); 2319 2322 HTMLArea.removeFromParent(el); 2323 ++stats.mso_xmlel; 2320 2324 } 2321 ++stats.mso_xmlel;2322 2325 } 2323 2326 function checkEmpty(el) { 2324 2327 if (/^(a|span|b|strong|i|em|font)$/i.test(el.tagName) &&
