saait

Simple static page generator
git clone https://git.sinitax.com/codemadness/saait
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit ea553ccc2b17673237ae4cecd7b9d840880b5118
parent 7fe442b894d6895be432431e1bc023428ad27394
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sat, 13 May 2017 13:11:24 +0200

compatiblity with browsers: use numeric entity for apos

this entity is XHTML, it is not supported by some (older) browsers.

Diffstat:
Msaait.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/saait.c b/saait.c @@ -28,7 +28,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);