Skip to content

Commit

Permalink
Fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
dliebner committed Jan 31, 2023
1 parent b08a176 commit 0aa5a98
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -566,11 +566,17 @@ function sanitizeHtml(html, options, _recursing) {
frame.updateParentNodeMediaChildren();
frame.updateParentNodeText();

if( name === 'wacky' ) {

console.log( tagAllowed(name), ['escape','recursiveEscape'].indexOf(options.disallowedTagsMode) >= 0 );

}

if (
// Already output />
options.selfClosing.indexOf(name) !== -1 ||
// Escaped tag
(tagAllowed(name) || ['escape','recursiveEscape'].indexOf(options.disallowedTagsMode) === -1)
(tagAllowed(name) || ['escape','recursiveEscape'].indexOf(options.disallowedTagsMode) >= 0)
) {
if (skip) {
result = tempResult;
Expand Down

0 comments on commit 0aa5a98

Please sign in to comment.