diff --git a/types/sanitize-html/index.d.ts b/types/sanitize-html/index.d.ts index 2e7527e3fc..8ec8e05901 100644 --- a/types/sanitize-html/index.d.ts +++ b/types/sanitize-html/index.d.ts @@ -4,6 +4,7 @@ // Afshin Darian // BehindTheMath // Rinze de Laat +// Will Gibson // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export = sanitize; @@ -51,6 +52,7 @@ declare namespace sanitize { nonTextTags?: string[]; selfClosing?: string[]; transformTags?: { [tagName: string]: string | Transformer }; + parser: {}; } diff --git a/types/sanitize-html/sanitize-html-tests.ts b/types/sanitize-html/sanitize-html-tests.ts index b02a5a6653..51d03bf3fe 100644 --- a/types/sanitize-html/sanitize-html-tests.ts +++ b/types/sanitize-html/sanitize-html-tests.ts @@ -29,7 +29,10 @@ let options: sanitize.IOptions = { allowedSchemesByTag: { 'a': ['http', 'https'] }, - allowProtocolRelative: false + allowProtocolRelative: false, + parser: { + decodeEntities: true + } }; let unsafe = '
';