kirby-html-minifier icon indicating copy to clipboard operation
kirby-html-minifier copied to clipboard

Breaks on inline CSS with brace selector

Open bavarianbytes opened this issue 7 years ago • 3 comments

Hi,

my site echos inline css in the page head. This CSS uses braces on some selectors, like a > span. The plugin seams to cuts away all of the CSS beginning with the first > in finds.

Greetz

bavarianbytes avatar Aug 07 '18 12:08 bavarianbytes

Yes, I the < and > is a problem if it's inside inline style or inline js. As a workaround for now, maybe you can move the css into your css file?

jenstornell avatar Aug 07 '18 12:08 jenstornell

Ok, good to know. As a workaround i disabled the plugin :-). Cause i need inline CSS for performance reasons.

bavarianbytes avatar Aug 07 '18 12:08 bavarianbytes

That workaround should work as well. 😄

Related: https://github.com/jenstornell/kirby-html-minifier/issues/13

jenstornell avatar Aug 07 '18 12:08 jenstornell