Skip to content

Commit

Permalink
Merge branch 'main' of github.com:cure53/DOMPurify into main
Browse files Browse the repository at this point in the history
  • Loading branch information
cure53 committed Sep 20, 2021
2 parents 5fff180 + c9709e3 commit f7fa358
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 f7fa358

Please sign in to comment.