Closed markb-trustifi closed 1 year ago
There is sadly not easy way to fix this behavior. The weird Outlook VML statements are non-standard HTML and naturally will e removed. maybe you can write a hook to better control this behavior - but no changes in the core library are expected to handle this.
Closing this now as this is not a bug we can fix and not much we can do here.
FYI, there is a related ticket https://github.com/inikulin/parse5/issues/963
Background & Context
Commented Outlook VML statements remain as is. Uncommented Outlook VML statements become commented.
dompurify: 3.0.1 jsdom: 22.1
Bug
Input
Given output
Expected output
Everything should remain unchanged