From 7e40e0d78391e63aef24f43af2fdfac8b6dd34f1 Mon Sep 17 00:00:00 2001 From: Yonle Date: Sat, 15 Jul 2023 02:14:33 +0700 Subject: [PATCH] html.c: invalid html tag: else? just show it as encoded text. Signed-off-by: Yonle --- format.c | 4 ++++ 1 file changed, 4 insertions(+) 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 {