Skip to content

Commit 075499d

Browse files
fix: ignore source maps when processing with postcss
1 parent eb932f8 commit 075499d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ function sanitizeHtml(html, options, _recursing) {
453453
if (a === 'style') {
454454
if (options.parseStyleAttributes) {
455455
try {
456-
const abstractSyntaxTree = postcssParse(name + ' {' + value + '}');
456+
const abstractSyntaxTree = postcssParse(name + ' {' + value + '}', { map: false });
457457
const filteredAST = filterCss(abstractSyntaxTree, options.allowedStyles);
458458

459459
value = stringifyStyleAttributes(filteredAST);

0 commit comments

Comments
 (0)