Skip to content

Commit ec1008d

Browse files
grant-wilsonalan-agius4
authored andcommitted
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. (cherry picked from commit 68490f1)
1 parent f6776af commit ec1008d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: packages/angular_devkit/schematics/README.md

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

0 commit comments

Comments
 (0)