summaryrefslogtreecommitdiff
path: root/stagit-index.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2017-04-15 12:56:29 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2017-04-15 12:56:29 +0200
commitab3fdd70430912751a9c5d00083a41f3251b6758 (patch)
tree7a4b568900a98f2d67a56ecd4c132e43ea50e0b9 /stagit-index.c
parentbba55b6bbcf35f9da67593a04d0b3daecbcd07b7 (diff)
browser compatibility: use numeric entity for '
&apos; is a XHTML entity, browsers such as links, w3m, lynx and dillo don't support it.
Diffstat (limited to 'stagit-index.c')
-rw-r--r--stagit-index.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stagit-index.c b/stagit-index.c
index 067dc30..0a72b33 100644
--- a/stagit-index.c
+++ b/stagit-index.c
@@ -47,7 +47,7 @@ xmlencode(FILE *fp, const char *s, size_t len)
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);