adobe / adobe/htlengine

unable to escape htl expression

Open
#170 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
HTML
Stars
49
Forks
20
Avg merge
3h 46m
Merged PRs (30d)
1

Description

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:

```
${"

\${currentNode.path}
" @ context = "text"}
```

gives:

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

workaround: use unicode escape:

```
${"

\u0024{currentNode.path\u007d
" @ context = "text"}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.