summaryrefslogtreecommitdiff
path: root/format.c
diff options
context:
space:
mode:
authorgrunfink <grunfink@noreply.codeberg.org>2023-07-15 14:11:48 +0000
committergrunfink <grunfink@noreply.codeberg.org>2023-07-15 14:11:48 +0000
commitc409d2e260ceb8b1dd21f62459b510d16b30815b (patch)
tree66d3fd8c8763a4b119ca21c7b9d2797c143e001e /format.c
parent3d6f1ee7a89e919dff10de7fb515ef149863c0f6 (diff)
parent7e40e0d78391e63aef24f43af2fdfac8b6dd34f1 (diff)
Merge pull request '[Really optional] Whenever to have Placeholder on some inputs? & other stuff' (#69) from yonle/snac2:master into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/69
Diffstat (limited to 'format.c')
-rw-r--r--format.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/format.c b/format.c
index 4491ae0..8c6c02a 100644
--- a/format.c
+++ b/format.c
@@ -226,6 +226,10 @@ xs_str *sanitize(const char *content)
v[1] == '/' ? "/" : "", tag, xs_list_len(el) ? " " : "", s3);
s = xs_str_cat(s, s2);
+ } else {
+ /* else? just show it with encoded code.. that's it. */
+ xs *el = encode_html(v);
+ s = xs_str_cat(s, el);
}
}
else {