Skip to content

Commit 0b4b70d

Browse files
authored
Add escaping of curly braces to docs
1 parent 3f2f1e5 commit 0b4b70d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

site/content/docs/03-template-syntax.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,16 @@ Text can also contain JavaScript expressions:
149149
<div>{(/^[A-Za-z ]+$/).test(value) ? x : y}</div>
150150
```
151151

152+
---
153+
154+
To include regular curly braces in the HTML, they must either be included as string Javascript expressions or their [HTML Entity](https://developer.mozilla.org/docs/Glossary/Entity) strings used
155+
156+
```html
157+
{'{'} in curly braces {'}'} or &lbrace; in curly braces &rbrace; or &lcub; in curly braces &rcub;
158+
```
159+
160+
---
161+
152162
### Comments
153163

154164
---

0 commit comments

Comments
 (0)