Skip to content

Commit 68490f1

Browse files
authored
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.
1 parent 23dac94 commit 68490f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/angular_devkit/schematics/README.md

Lines changed: 1 addition & 1 deletion
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)