diff --git a/types/dompurify/dompurify-tests.ts b/types/dompurify/dompurify-tests.ts index eb07cfcf14..fb60f2cd7b 100644 --- a/types/dompurify/dompurify-tests.ts +++ b/types/dompurify/dompurify-tests.ts @@ -4,54 +4,54 @@ import dompurify = require('dompurify'); dompurify.sanitize(''); dompurify.addHook('beforeSanitizeElements', (el, data, config) => { - return el; + return el; }); //examples from the DOMPurify README let dirty = '
Totally safe
Totally not safe
'; // allow only -dompurify.sanitize(dirty, {ALLOWED_TAGS: ['b']}); +dompurify.sanitize(dirty, { ALLOWED_TAGS: ['b'] }); // allow only andwith style attributes (for whatever reason) -dompurify.sanitize(dirty, {ALLOWED_TAGS: ['b', 'q'], ALLOWED_ATTR: ['style']}); +dompurify.sanitize(dirty, { ALLOWED_TAGS: ['b', 'q'], ALLOWED_ATTR: ['style'] }); // leave all as it is but forbid