From 8e922657465da745ff7a35ae7b66216de608935c Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Fri, 22 Nov 2019 18:16:52 +0100 Subject: xml.c: upper-case named-entities are invalid in XML Named entities are case-sensitive and in XML lower-case. (In HTML some of these are valid. Although &APOS; is invalid there too). References: 4.6 Predefined entities: https://www.w3.org/TR/xml/#sec-predefined-ent In the definition of "match": https://www.w3.org/TR/xml/#dt-match "No case folding is performed." --- xml.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/xml.c b/xml.c index d6e63b0..f7e000b 100644 --- a/xml.c +++ b/xml.c @@ -255,11 +255,6 @@ namedentitytostr(const char *e, char *buf, size_t bufsiz) { "gt;", '>' }, { "apos;", '\'' }, { "quot;", '"' }, - { "AMP;", '&' }, - { "LT;", '<' }, - { "GT;", '>' }, - { "APOS;", '\'' }, - { "QUOT;", '"' } }; size_t i; -- cgit v1.2.3