Skip to content

Commit

Permalink
docs: additional info in example
Browse files Browse the repository at this point in the history
  • Loading branch information
kyselberg committed Apr 25, 2024
1 parent 6e240ec commit 2a554b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ DOMPurify.addHook(
function (currentNode, hookEvent, config) {
// Do something with the current node
// You can also mutate hookEvent for current node (i.e. set hookEvent.forceKeepAttr = true)
// For other than 'uponSanitizeAttribute' hook types hookEvent equals to null
}
);
```
Expand Down

0 comments on commit 2a554b4

Please sign in to comment.