Skip to main content

spec-char-escape

If set, special characters in text and attributes (e.g. >) must be escaped.

The following patterns are considered violations:

<p>Hello & world</p>
<p id="mine&ours" class="yours>mine">Hello world</p>
<p id="john&*;paul&;ringo&george^">Hello world</p>

The following patterns are considered not violations:

<p class="foo\&bar">Hello world</p>
<p class="foo bar">Hello \& world</p>