entities: support ' entity

The XHTML standard encompasses the XML standard.

From the beginning, the XML standard [1] has always included required
support for five character entities:

 1. the ampersand (&) as &
 2. the left angle bracket (<) as &lt;
 3. the right angle bracket (>) as &gt;
 4. the double-quote character (") as &quot;
 5. the apostrophe or single-quote character (') as &apos;

See section "2.4 Character Data and Markup" of the XML standard [1]
for further details.

Add support for the character single-quote character entity (&apos;)
in order to fully support XHTML pages.

[1]: https://www.w3.org/TR/REC-xml/

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
This commit is contained in:
Kyle J. McKay
2019-11-08 15:53:20 -07:00
parent b3054364d1
commit e8948ec3a3
3 changed files with 6 additions and 4 deletions

View File

@@ -7,6 +7,8 @@ amp 0x26
AMP 0x26
quot 0x22
QUOT 0x22
apos 0x27
APOS 0x27
nbsp 0xA0
NBSP 0xA0
iexcl 0xA1