commit 158b360181e2006ba073fa9332ca8b27690f12dd
parent 28a91ab7328939870046b2d0d77ece37dfd63b32
Author: default <nobody@localhost>
Date: Tue, 11 Jul 2023 20:28:24 +0200
When sanitize() is called, encode_html() is no longer needed.
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/html.c b/html.c
@@ -1410,8 +1410,7 @@ d_char *html_people_list(snac *snac, d_char *os, d_char *list, const char *heade
if (xs_startswith(sc, "<p>"))
s = xs_str_cat(s, sc);
else {
- xs *es1 = encode_html(sc);
- xs *s1 = xs_fmt("<p>%s</p>", es1);
+ xs *s1 = xs_fmt("<p>%s</p>", sc);
s = xs_str_cat(s, s1);
}