1
0
Fork 0

html.c: Fix wrong encoding for '>' and '<'

This commit is contained in:
Xavier Del Campo Romero 2023-08-08 00:32:21 +02:00
parent 0a3b827961
commit d55b84f68b
Signed by untrusted user: xavi
GPG Key ID: 84FF3612A9BF43F2
1 changed files with 2 additions and 2 deletions

4
html.c
View File

@ -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;"}