disallow unrecognized character references (unrecognized-char-ref)

HTML defines a set of named character references (sometimes called HTML entities) which can be used as &name; where name is the entity name, e.g. ' (') or & (&). Only entities on the list can be used.

Rule details

Examples of incorrect code for this rule:

<p>&foobar;</p>
error: Unrecognized character reference "&foobar;" (unrecognized-char-ref) at inline:1:4:
> 1 | <p>&foobar;</p>
    |    ^^^^^^^^


1 error found.

Examples of correct code for this rule:

<p>&amp;</p>