BeforeSanitizeHtmlArgs

23 Sep 20251 minute to read

Provides information about a BeforeSanitizeHtml event.

Properties

cancel boolean

Illustrates whether the current action needs to be prevented or not.

helper Function

It is a callback function and executed it before our inbuilt action. It should return HTML as a string.

selectors SanitizeSelectors

Returns the selectors object which carrying both tags and attributes selectors to block list of cross-site scripting attack.
Also possible to modify the block list in this event.