summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2017-04-27 13:14:32 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2017-04-27 13:14:32 +0200
commit4a788d59984eb47799e08c4242c98014c5a4809f (patch)
tree125deac26cc1e01f3fe5fd682604ef7254a885a0 /util.c
parent1b71671a2d71c3ea8e39d4603eb8f21043d1f975 (diff)
compatiblity with browsers: use numeric entity for apos
this entity is XHTML, it is not supported by some (older) browsers.
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index 93f349e..91c5d8c 100644
--- a/util.c
+++ b/util.c
@@ -231,7 +231,7 @@ xmlencode(const char *s, FILE *fp)
switch(*s) {
case '<': fputs("&lt;", fp); break;
case '>': fputs("&gt;", fp); break;
- case '\'': fputs("&apos;", fp); break;
+ case '\'': fputs("&#39;", fp); break;
case '&': fputs("&amp;", fp); break;
case '"': fputs("&quot;", fp); break;
default: fputc(*s, fp);