Fix DOMPurify paths. Part 3.

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2025-10-11 01:08:39 +03:00
parent 82ba0f9593
commit 21ba0a9606
5 changed files with 125 additions and 4 deletions

View file

@ -325,7 +325,7 @@ BlazeComponent.extendComponent({
}).register('editor');
import DOMPurify from 'dompurify';
import { sanitizeHTML } from '../lib/secureDOMPurify';
import { sanitizeHTML } from '/imports/lib/secureDOMPurify';
// Additional safeAttrValue function to allow for other specific protocols
// See https://github.com/leizongmin/js-xss/issues/52#issuecomment-241354114