pug-php / pug

Pug template engine for PHP
https://www.phug-lang.com
MIT License
391 stars 42 forks source link

Apostrophe is escaped #238

Closed sandrodz closed 4 years ago

sandrodz commented 4 years ago

Hi,

div(class="bg-t3 c-p70 pv-m pv-l@m ph-s ph-l@m fz-24 fz-36@m lh-xxs g-b fb1/1 fb1/2@m")= quote

string content:

Metreveli's

is rendered:

Screen Shot 2020-06-08 at 14 31 44

obviously adding !=quote fixes this. But why are ' and other enttities escaped?

kylekatarnls commented 4 years ago

Hello, I'm pretty sure quote does not content Metreveli's but an already escaped string. And that would be the cause: it's escaped twice.

As you may see, if quote actually contains what you say, it works fine:

- quote = "Metreveli's"
div(class="bg-t3 c-p70 pv-m pv-l@m ph-s ph-l@m fz-24 fz-36@m lh-xxs g-b fb1/1 fb1/2@m")= quote
sandrodz commented 4 years ago

You are absolutely right. Sorry.