mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-09 19:50:26 +03:00
html.c: invalid html tag: else? just show it as encoded text.
Signed-off-by: Yonle <yonle@lecturify.net>
This commit is contained in:
parent
98c72db17c
commit
7e40e0d783
4
format.c
4
format.c
@ -226,6 +226,10 @@ xs_str *sanitize(const char *content)
|
|||||||
v[1] == '/' ? "/" : "", tag, xs_list_len(el) ? " " : "", s3);
|
v[1] == '/' ? "/" : "", tag, xs_list_len(el) ? " " : "", s3);
|
||||||
|
|
||||||
s = xs_str_cat(s, s2);
|
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 {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user