Skip to content

Commit 456a841

Browse files
Merge pull request #27 from johnretsas/update-dompurify-to-3.2.2
Update dompurify to 3.2.2
2 parents 742d750 + c0a32ce commit 456a841

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

package-lock.json

+13-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"typescript": "^5.3.3"
5656
},
5757
"dependencies": {
58-
"dompurify": "^3.0.8"
58+
"dompurify": "^3.2.2"
5959
},
6060
"peerDependencies": {
6161
"react": "^16.2.0 || ^17.0.0 || ^18.0.0"

src/dom.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ export function getAttributes(elementAttributes: NamedNodeMap) {
2222
}
2323

2424
export function parse(html: string, config: Config): DocumentFragment {
25-
return dompurify.sanitize(html, config.dom) as DocumentFragment;
25+
return dompurify.sanitize(html, config.dom) as unknown as DocumentFragment;
2626
}

0 commit comments

Comments
 (0)