From 98c72db17c07fac90bf1893c45e4a67e7e2ec173 Mon Sep 17 00:00:00 2001 From: Yonle Date: Sat, 15 Jul 2023 02:06:10 +0700 Subject: [PATCH] html.c: *prev_src at edit: Just use encode_html. Signed-off-by: Yonle --- html.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html.c b/html.c index fadc29a..e4703d1 100644 --- a/html.c +++ b/html.c @@ -712,7 +712,7 @@ xs_str *html_entry_controls(snac *snac, xs_str *os, const xs_dict *msg, const ch const char *prev_src1 = xs_dict_get(msg, "sourceContent"); if (!xs_is_null(prev_src1) && strcmp(actor, snac->actor) == 0) { /** edit **/ - xs *prev_src = xs_replace(prev_src1, "<", "<"); + xs *prev_src = encode_html(prev_src1); const xs_val *sensitive = xs_dict_get(msg, "sensitive"); const char *summary = xs_dict_get(msg, "summary");