aboutsummaryrefslogtreecommitdiffstats
path: root/indep.h
diff options
context:
space:
mode:
authorKyle J. McKay <mackyle@gmail.com>2019-11-08 22:53:20 +0000
committerKyle J. McKay <mackyle@gmail.com>2019-11-08 22:53:20 +0000
commite8948ec3a397d6e78e64902b99bb2f7a16facd18 (patch)
tree3df5fc7e8f04ef3b9a0316731952db54043daf57 /indep.h
parentUpdate ChangeLog (diff)
downloadw3m-e8948ec3a397d6e78e64902b99bb2f7a16facd18.tar.gz
w3m-e8948ec3a397d6e78e64902b99bb2f7a16facd18.zip
entities: support &apos; 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 &amp; 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>
Diffstat (limited to 'indep.h')
-rw-r--r--indep.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/indep.h b/indep.h
index 2809832..5c6b1da 100644
--- a/indep.h
+++ b/indep.h
@@ -27,7 +27,7 @@ struct growbuf {
extern unsigned char QUOTE_MAP[];
extern char *HTML_QUOTE_MAP[];
-#define HTML_QUOTE_MASK 0x07 /* &, <, >, " */
+#define HTML_QUOTE_MASK 0x07 /* &, <, >, ", ' */
#define SHELL_UNSAFE_MASK 0x08 /* [^A-Za-z0-9_./:\200-\377] */
#define URL_QUOTE_MASK 0x10 /* [\0- \177-\377] */
#define FILE_QUOTE_MASK 0x30 /* [\0- #%&+:?\177-\377] */