Skip to content

Commit

Permalink
docs: fix character code in expression example (#22564)
Browse files Browse the repository at this point in the history
* 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)
  • Loading branch information
grant-wilson authored and alan-agius4 committed Jan 25, 2022
1 parent fc839e1 commit 2285a78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/angular_devkit/schematics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ The system operates on placeholders defined inside files or their paths as loade
| 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 %>` | 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. |
| `<%# text %>` | A comment, which gets entirely dropped. |

Expand Down

0 comments on commit 2285a78

Please sign in to comment.