From 3be3e5bc835e1b6be01e6d1d7587609896a2d21b Mon Sep 17 00:00:00 2001 From: Simon Pieters Date: Thu, 16 Sep 2021 23:37:11 +0200 Subject: [PATCH] Fix README.md to reference application/xhtml+xml --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 93cea8a73..51b731cbd 100644 --- a/README.md +++ b/README.md @@ -247,7 +247,7 @@ var clean = DOMPurify.sanitize(dirty, {KEEP_CONTENT: false}); var clean = DOMPurify.sanitize(dirty, {FORCE_BODY: true}); // change the parser type so sanitized data is treated as XML and not as HTML, which is the default -var clean = DOMPurify.sanitize(dirty, {PARSER_MEDIA_TYPE: 'application/xml'}); +var clean = DOMPurify.sanitize(dirty, {PARSER_MEDIA_TYPE: 'application/xhtml+xml'}); /** * Influence where we sanitize