diff options
| author | 2023-07-15 14:11:48 +0000 | |
|---|---|---|
| committer | 2023-07-15 14:11:48 +0000 | |
| commit | c409d2e260ceb8b1dd21f62459b510d16b30815b (patch) | |
| tree | 66d3fd8c8763a4b119ca21c7b9d2797c143e001e /format.c | |
| parent | Updated RELEASE_NOTES. (diff) | |
| parent | html.c: invalid html tag: else? just show it as encoded text. (diff) | |
| download | snac2-c409d2e260ceb8b1dd21f62459b510d16b30815b.tar.gz snac2-c409d2e260ceb8b1dd21f62459b510d16b30815b.tar.xz snac2-c409d2e260ceb8b1dd21f62459b510d16b30815b.zip | |
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.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 { |