Skip to content

Commit

Permalink
Fix README.md to reference application/xhtml+xml
Browse files Browse the repository at this point in the history
  • Loading branch information
zcorpan authored Sep 16, 2021
1 parent 36135bb commit 3be3e5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3be3e5b

Please sign in to comment.