lambda-fairy / maud

:pencil: Compile-time HTML templates for Rust
https://maud.lambda.xyz
Apache License 2.0
1.98k stars 132 forks source link

Bad parsing with attribute splices #420

Open J-Cake opened 4 months ago

J-Cake commented 4 months ago

The following snippet produces corrupt markup:

span attr=(r#"Hello"World"#) {}
div {}

Results in the following markup:

<span attr="hello&quot;world" div></span>

The resulting visuals are ... beyond broken :/

lambda-fairy commented 4 months ago

Thanks for reporting. We changed attribute syntax recently so I wonder if that's related. Alternatively, does #412 fix the bug?