The example code can be slower than your environment because the code is transpiled by babel-standalone in runtime.
As an example of using 'customHTMLSanitizer' option, and DOMPurify is used as the external sanitizer module used.