summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfeed_frames.c2
-rw-r--r--util.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sfeed_frames.c b/sfeed_frames.c
index b7d9c65..e91a236 100644
--- a/sfeed_frames.c
+++ b/sfeed_frames.c
@@ -64,7 +64,7 @@ printcontentxml(const char *s, FILE *fp)
/* XML entities */
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((int)*s, fp);
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);