Compare commits
2 Commits
f1c96eb689
...
d63638541b
Author | SHA1 | Date |
---|---|---|
Cohee | d63638541b | |
Aisu Wata | fc380fa522 |
|
@ -395,7 +395,8 @@ export function decodeStyleTags(text) {
|
||||||
|
|
||||||
return text.replaceAll(styleDecodeRegex, (_, style) => {
|
return text.replaceAll(styleDecodeRegex, (_, style) => {
|
||||||
try {
|
try {
|
||||||
const ast = css.parse(unescape(style));
|
let styleCleaned = unescape(style).replaceAll(/<br\/>/g, '');
|
||||||
|
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