mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 21:35:04 +00:00
html.c: *prev_src at edit: Just use encode_html.
Signed-off-by: Yonle <yonle@lecturify.net>
This commit is contained in:
parent
299886d898
commit
98c72db17c
1 changed files with 1 additions and 1 deletions
2
html.c
2
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");
|
const char *prev_src1 = xs_dict_get(msg, "sourceContent");
|
||||||
|
|
||||||
if (!xs_is_null(prev_src1) && strcmp(actor, snac->actor) == 0) { /** edit **/
|
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 xs_val *sensitive = xs_dict_get(msg, "sensitive");
|
||||||
const char *summary = xs_dict_get(msg, "summary");
|
const char *summary = xs_dict_get(msg, "summary");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue