diff --git a/html.c b/html.c index 892a08c..9f9737a 100644 --- a/html.c +++ b/html.c @@ -668,9 +668,11 @@ xs_str *html_entry_controls(snac *snac, xs_str *os, const xs_dict *msg, const ch s = xs_str_cat(s, "\n"); - char *prev_src = xs_dict_get(msg, "sourceContent"); + const char *prev_src1 = xs_dict_get(msg, "sourceContent"); + + if (!xs_is_null(prev_src1) && strcmp(actor, snac->actor) == 0) { + xs *prev_src = xs_replace(prev_src1, "<", "<"); - if (!xs_is_null(prev_src) && strcmp(actor, snac->actor) == 0) { /* post can be edited */ xs *s1 = xs_fmt( "

%s\n"