Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to escape htl expression #170

Open
tripodsan opened this issue Apr 24, 2020 · 0 comments
Open

unable to escape htl expression #170

tripodsan opened this issue Apr 24, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@tripodsan
Copy link
Contributor

the spec states:

Like in JSP (see section "1.2.2 Literal-expression" from the JSP 2.1 Expression Language Specification), to escape an expression (the ${), it can be prefixed it with a backslash \${)).

but this doesn't work:

    ${"<div>\${currentNode.path}</div>" @ context = "text"}

gives:

TypeError: Cannot destructure property `plugin` of 'undefined' or 'null'.

workaround: use unicode escape:

    ${"<div>\u0024{currentNode.path\u007d</div>" @ context = "text"}
@trieloff trieloff added the bug Something isn't working label Apr 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants