docs: fix character code in expression example (#22564)

* docs: fix character code in expression example

Add '\' prefix so character code is rendered literally,
not as the character it represents.

* docs: format readme.md

Run `ng-dev format files` on readme.md.
This commit is contained in:
grant-wilson 2022-01-25 13:42:25 -05:00 committed by GitHub
parent 23dac94c78
commit 68490f1553
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -124,7 +124,7 @@ The system operates on placeholders defined inside files or their paths as loade
| Placeholder | Description | | Placeholder | Description |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| `<%= expression %>` | Replaced with the result of the call of the given expression. This only supports direct expressions, no structural (for/if/...) JavaScript. | | `<%= expression %>` | Replaced with the result of the call of the given expression. This only supports direct expressions, no structural (for/if/...) JavaScript. |
| `<%- expression %>` | Same as above, but the value of the result will be escaped for HTML when inserted (i.e. replacing '<' with '&lt;') | | `<%- expression %>` | Same as above, but the value of the result will be escaped for HTML when inserted (i.e. replacing '<' with '\&lt;') |
| `<% inline code %>` | Inserts the given code into the template structure, allowing to insert structural JavaScript. | | `<% inline code %>` | Inserts the given code into the template structure, allowing to insert structural JavaScript. |
| `<%# text %>` | A comment, which gets entirely dropped. | | `<%# text %>` | A comment, which gets entirely dropped. |