Skip to main content

spec-char-escape

Special characters must be escaped.

Level: error

Config value

  1. true: enable rule
  2. false: disable rule

The following patterns are not considered violations:

<span>aaa&gt;bbb&lt;ccc</span>
<span>Steinway &amp; Sons, Q&amp;A</span>
<span>Steinway & Sons, Q&A</span>

The following pattern is considered violation:

<span>aaa>bbb<ccc</span>