[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/js/ -> wp-sanitize.min.js (source)

   1  /*! This file is auto-generated */
   2  window.wp=window.wp||{},wp.sanitize={stripTags:function(t){var e=(t=t||"").replace(/<!--[\s\S]*?(-->|$)/g,"").replace(/<(script|style)[^>]*>[\s\S]*?(<\/\1>|$)/gi,"").replace(/<\/?[a-z][\s\S]*?(>|$)/gi,"");return e!==t?wp.sanitize.stripTags(e):e},stripTagsAndEncodeText:function(t){var e=wp.sanitize.stripTags(t),t=document.createElement("textarea");try{t.textContent=e,e=wp.sanitize.stripTags(t.value)}catch(t){}return e}};


Generated: Sun Aug 1 01:00:05 2021 Cross-referenced by PHPXref 0.7.1