aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-08-08 00:32:21 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-08-08 00:34:38 +0200
commitd55b84f68b90fe5c2521724d0c22ebf22e62b0b4 (patch)
treeb3ecf430471f80c8c78d750eb1bd77758b5827fc
parent0a3b8279610eea9698abd465633fcc14d817e7d3 (diff)
html.c: Fix wrong encoding for '>' and '<'
-rw-r--r--html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/html.c b/html.c
index cdafd64..482f133 100644
--- a/html.c
+++ b/html.c
@@ -40,8 +40,8 @@ static char *html_encode(const char *s)
const char *str;
} esc[] =
{
- {.c = '<', .str = "&gt;"},
- {.c = '>', .str = "&lt;"},
+ {.c = '>', .str = "&gt;"},
+ {.c = '<', .str = "&lt;"},
{.c = '&', .str = "&amp;"},
{.c = '\"', .str = "&quot;"},
{.c = '\'', .str = "&apos;"}