From 2a554b4e4763a7dd0eb41318710fa22aaaca4767 Mon Sep 17 00:00:00 2001 From: Illia Kyselov Date: Thu, 25 Apr 2024 16:30:54 +0300 Subject: [PATCH] docs: additional info in example --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 7a131e843..e66bb1ccd 100644 --- a/README.md +++ b/README.md @@ -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 } ); ```