From 2285a7882750652337af20c39459766597e56309 Mon Sep 17 00:00:00 2001 From: grant-wilson Date: Tue, 25 Jan 2022 13:42:25 -0500 Subject: [PATCH] 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 68490f1553468576c3c9a14cfefd0320f89a520c) --- packages/angular_devkit/schematics/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/angular_devkit/schematics/README.md b/packages/angular_devkit/schematics/README.md index 4ef2d45c4eb5..7fce70c8b80d 100644 --- a/packages/angular_devkit/schematics/README.md +++ b/packages/angular_devkit/schematics/README.md @@ -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 '<') | +| `<%- expression %>` | Same as above, but the value of the result will be escaped for HTML when inserted (i.e. replacing '<' with '\<') | | `<% inline code %>` | Inserts the given code into the template structure, allowing to insert structural JavaScript. | | `<%# text %>` | A comment, which gets entirely dropped. |