Skip to content

Commit 67fe5fa

Browse files
authored
add more escape examples
1 parent 5dddbf4 commit 67fe5fa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/rules/no-unescaped-entities.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@ when the closing `>` is in the wrong place.
4141
The preferred way to include one of these characters is to use the HTML escape code.
4242

4343
- `>` can be replaced with `>`
44-
- `"` can be replaced with `"`, `“` or `”`
45-
- `'` can be replaced with `'`, `‘` or `’`
44+
- `<` can be replaced with `&lt;`
45+
- `"` can be replaced with `&quot;`, `&ldquo;`, `&#34;` or `&rdquo;`
46+
- `'` can be replaced with `&apos;`, `&lsquo;`, `&#39;` or `&rsquo;`
4647
- `}` can be replaced with `&#125;`
4748

4849
Alternatively, you can include the literal character inside a subexpression

0 commit comments

Comments
 (0)