phug-php / phug

Phug - The Pug Template Engine for PHP
https://phug.selfbuild.fr
MIT License
63 stars 3 forks source link

Undesired URL-encoding of attribute values #95

Closed rulatir closed 1 year ago

rulatir commented 1 year ago

Hello,

I encountered an issue with the following code:

- $url = "#Резервация-пакет"
a(href=$url) whatever

I expected to get:

<a href="#Резервация-пакет">whatever</a>

But I actually get:

<a href="#%D0%A0%D0%B5%D0%B7%D0%B5%D1%80%D0%B2%D0%B0%D1%86%D0%B8%D1%8F-%D0%BF%D0%B0%D0%BA%D0%B5%D1%82">whatever</a>

Basically all cyrillic in all attributes is urlencoded wholesale.

Thanks!

rulatir commented 1 year ago

Nevermind, some postprocessing did this.