diff --git a/index.js b/index.js index bc62eeb..62404fa 100644 --- a/index.js +++ b/index.js @@ -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);