-
-
Notifications
You must be signed in to change notification settings - Fork 18
Closed
Description
Noticed two issues with using @{{ }} for ignoring expressions.
Escaping fails inside attributes
This:
<a href="@{{ foo }}">Home</a>Becomes this:
<a href="@{{ undefined }}">Home</a>It still tries to evaluate the expression when inside an attribute.
Escaping in content is a bit glitchy
<p>This is some @{{ variable }}, and here is another: @{{ bar }}</p>Becomes:
<p>This is some {{ variable }}, and here is another: @{{ bar }}</p>Basically, since the node is returned right when @ is encountered, any subsequent escaped expressions will be returned as-is (including the @ symbol).
So it's actually enough to do:
<p>This is some @{{ variable }}, and here is another: {{ bar }}</p>... and that will output:
<p>This is some {{ variable }}, and here is another: {{ bar }}</p>However, this isn't expected behavior.
Metadata
Metadata
Assignees
Labels
No labels