diff options
| author | 2023-07-15 02:14:33 +0700 | |
|---|---|---|
| committer | 2023-07-15 02:14:33 +0700 | |
| commit | 7e40e0d78391e63aef24f43af2fdfac8b6dd34f1 (patch) | |
| tree | 66d3fd8c8763a4b119ca21c7b9d2797c143e001e | |
| parent | html.c: *prev_src at edit: Just use encode_html. (diff) | |
| download | penes-snac2-7e40e0d78391e63aef24f43af2fdfac8b6dd34f1.tar.gz penes-snac2-7e40e0d78391e63aef24f43af2fdfac8b6dd34f1.tar.xz penes-snac2-7e40e0d78391e63aef24f43af2fdfac8b6dd34f1.zip | |
html.c: invalid html tag: else? just show it as encoded text.
Signed-off-by: Yonle <yonle@lecturify.net>
| -rw-r--r-- | format.c | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -226,6 +226,10 @@ xs_str *sanitize(const char *content) | |||
| 226 | v[1] == '/' ? "/" : "", tag, xs_list_len(el) ? " " : "", s3); | 226 | v[1] == '/' ? "/" : "", tag, xs_list_len(el) ? " " : "", s3); |
| 227 | 227 | ||
| 228 | s = xs_str_cat(s, s2); | 228 | s = xs_str_cat(s, s2); |
| 229 | } else { | ||
| 230 | /* else? just show it with encoded code.. that's it. */ | ||
| 231 | xs *el = encode_html(v); | ||
| 232 | s = xs_str_cat(s, el); | ||
| 229 | } | 233 | } |
| 230 | } | 234 | } |
| 231 | else { | 235 | else { |