apostrophecms / sanitize-html

Clean up user-submitted HTML, preserving whitelisted elements and whitelisted attributes on a per-element basis. Built on htmlparser2 for speed and tolerance
MIT License
3.68k stars 349 forks source link

fix: ignore source maps when processing with postcss #650

Closed dylanarmstrong closed 4 months ago

dylanarmstrong commented 4 months ago

Summary

Do not process source maps when using PostCSS.

What are the specific steps to test this change?

Test provided in PR.

What kind of change does this PR introduce?

Make sure the PR fulfills these requirements: