Update documentation/docs/02-template-syntax/02-basic-markup.md

pull/8560/head
Ben McCann 3 years ago committed by GitHub
parent 9b33d6f5b9
commit d9919715c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -111,11 +111,6 @@ An element or component can have multiple spread attributes, interspersed with r
Curly braces can be included by using their [HTML entity](https://developer.mozilla.org/docs/Glossary/Entity) strings: `{`, `{`, or `{` for `{` and `}`, `}`, or `}` for `}`.
```svelte
<p>&#123; in curly braces &#123; &lbrace; in curly braces &rbrace; or &lcub; in curly braces &rcub;</p>
<p>&#123; it also works only escaping the start curly brace }</p>
```
Text can also contain the result of JavaScript expressions.
> If you're using a regular expression (`RegExp`) [literal notation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp#literal_notation_and_constructor), you'll need to wrap it in parentheses.

Loading…
Cancel
Save