Skip to content

Commit

Permalink
fix: ignore source maps when processing with postcss
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanarmstrong committed Feb 21, 2024
1 parent eb932f8 commit 075499d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ function sanitizeHtml(html, options, _recursing) {
if (a === 'style') {
if (options.parseStyleAttributes) {
try {
const abstractSyntaxTree = postcssParse(name + ' {' + value + '}');
const abstractSyntaxTree = postcssParse(name + ' {' + value + '}', { map: false });
const filteredAST = filterCss(abstractSyntaxTree, options.allowedStyles);

value = stringifyStyleAttributes(filteredAST);
Expand Down

0 comments on commit 075499d

Please sign in to comment.