aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Johnson <nick@nicksphere.ch>2022-01-18 00:00:00 +0000
committerNicholas Johnson <nick@nicksphere.ch>2022-01-18 00:00:00 +0000
commit78f721b5957e588a35b1474b70c3bb4f213ff55ae1badabaa59eeb2180186324 (patch)
tree03705e5a4e7464084d9d0a67b70595992fcbe8cad4039e8d8c17d39cdf7fcfd7
parentc6e80117776564c9cb1084572eb69520aa8056cfb6538d24d736be2e59dc8a80 (diff)
Change &#x27; back to &apos;. &apos is supported by HTML5
-rw-r--r--src/gemini2html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gemini2html.c b/src/gemini2html.c
index 5e439db..3d0c855 100644
--- a/src/gemini2html.c
+++ b/src/gemini2html.c
@@ -71,7 +71,7 @@ char* escape_html_attribute(const char* unescaped, const size_t size) {
case '<': strcpy(substitute, "&lt;"); break;
case '>': strcpy(substitute, "&gt;"); break;
case '&': strcpy(substitute, "&amp;"); break;
- case '\'': strcpy(substitute, "&#x27;"); break;
+ case '\'': strcpy(substitute, "&apos;"); break;
case '\"': strcpy(substitute, "&quot;"); break;
default:
strncpy(substitute, unescaped + pos, 1);