Skip to content

Commit

Permalink
fix: Return true from SanatizerAPI backend when successfully setting …
Browse files Browse the repository at this point in the history
…HTML
  • Loading branch information
lucasnetau committed Oct 6, 2023
1 parent 281d7df commit c5d24c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/js/sanitizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ const sanitizersCallbacks = {
const sanitizer = sanitizerConfig.backends.sanitizer
if (sanitizer) {
element.setHTML(content, { sanitizer: sanitizer })
return true
}
return false
}
Expand Down

0 comments on commit c5d24c8

Please sign in to comment.