Introduction
Introduction Statistics Contact Development Disclaimer Help
tbrowser compatibility: use numeric entity for ' - stagit - static git page gen…
git clone git://src.adamsgaard.dk/stagit
Log
Files
Refs
README
LICENSE
---
commit ab3fdd70430912751a9c5d00083a41f3251b6758
parent bba55b6bbcf35f9da67593a04d0b3daecbcd07b7
Author: Hiltjo Posthuma <[email protected]>
Date: Sat, 15 Apr 2017 12:56:29 +0200
browser compatibility: use numeric entity for '
&apos; is a XHTML entity, browsers such as links, w3m, lynx and dillo
don't support it.
Diffstat:
M stagit-index.c | 2 +-
M stagit.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/stagit-index.c b/stagit-index.c
t@@ -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);
diff --git a/stagit.c b/stagit.c
t@@ -248,7 +248,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);
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.