commit 7e40e0d

Yonle  ·  2023-07-14 19:14:33 +0000 UTC
parent 98c72db
html.c: invalid html tag: else? just show it as encoded text.

Signed-off-by: Yonle <yonle@lecturify.net>
1 files changed,  +4, -0
+4, -0
 1@@ -226,6 +226,10 @@ xs_str *sanitize(const char *content)
 2                     v[1] == '/' ? "/" : "", tag, xs_list_len(el) ? " " : "", s3);
 3 
 4                 s = xs_str_cat(s, s2);
 5+            } else {
 6+                /* else? just show it with encoded code.. that's it. */
 7+                xs *el = encode_html(v);
 8+                s = xs_str_cat(s, el);
 9             }
10         }
11         else {