Compare commits
No commits in common. "d63638541b1bba1b4e1d90fd9d963db1c3e1e688" and "f1c96eb6890726eac60219ebd5fc38187371d3b2" have entirely different histories.
d63638541b
...
f1c96eb689
|
@ -395,8 +395,7 @@ export function decodeStyleTags(text) {
|
||||||
|
|
||||||
return text.replaceAll(styleDecodeRegex, (_, style) => {
|
return text.replaceAll(styleDecodeRegex, (_, style) => {
|
||||||
try {
|
try {
|
||||||
let styleCleaned = unescape(style).replaceAll(/<br\/>/g, '');
|
const ast = css.parse(unescape(style));
|
||||||
const ast = css.parse(styleCleaned);
|
|
||||||
const rules = ast?.stylesheet?.rules;
|
const rules = ast?.stylesheet?.rules;
|
||||||
if (rules) {
|
if (rules) {
|
||||||
for (const rule of rules) {
|
for (const rule of rules) {
|
||||||
|
|
Loading…
Reference in New Issue