summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2019-11-22 18:16:52 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2019-11-22 18:16:52 +0100
commit8e922657465da745ff7a35ae7b66216de608935c (patch)
tree281fcfecfa5504324fc4179d0a1424557a13b75e
parentade689b7c91c338333b367ee5a12e5b6afb3dba1 (diff)
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."
-rw-r--r--xml.c5
1 files changed, 0 insertions, 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;