Open pierre-b opened 3 years ago
Hi @pierre-b
Unfortunately I don't have any development computer anymore so I can't take a look but I think most likely somewhere in html.Nodes that escape the value of attribute.
So for now if possible don't use quotes (I think it is possible for your example but maybe you have other things that need quotes)
Or maybe goquery that use html.Render https://github.com/PuerkitoBio/goquery/blob/master/property.go#L104
But could also be from css-package.
Hi @vanng822 thanks for the update, removing the quotes on standard fonts works (Arial etc...).
I took a closer look, I think the problem is in net/html, It may related to this proposal. https://github.com/golang/go/issues/43224
goquery just uses html.Attribute and as I could see the value is correct until this point.
Thanks for the follow up!
Hello guys,
When I check the generated HTML for classes that contain a
font-family
the output is:<p class="font-family:'Arial', sans-serif"></p>
Is this the expected behavior? I'm suprised to see HTML entities
'
in the middle of a CSS attribute...Thanks