1 line
381 B
JavaScript
1 line
381 B
JavaScript
!function(){window.wp=window.wp||{},wp.sanitize={stripTags:function(a){return a=a||"",a.replace(/<!--[\s\S]*?(-->|$)/g,"").replace(/<(script|style)[^>]*>[\s\S]*?(<\/\1>|$)/gi,"").replace(/<\/?[a-z][\s\S]*?(>|$)/gi,"")},sanitizeText:function(a){var b=wp.utils.stripTags(a),c=document.createElement("textarea");try{c.innerHTML=b,b=wp.utils.stripTags(c.value)}catch(d){}return b}}}(); |