summaryrefslogtreecommitdiff
path: root/format.c
diff options
context:
space:
mode:
authorGravatar default2024-05-11 19:15:18 +0200
committerGravatar default2024-05-11 19:15:18 +0200
commit6f3763f452ba55ee6ddd9f63f5bc523807e7288f (patch)
tree675ca94f9f75462a7d875e58bc14f52fe844f884 /format.c
parentUnified post-like object type match. (diff)
downloadpenes-snac2-6f3763f452ba55ee6ddd9f63f5bc523807e7288f.tar.gz
penes-snac2-6f3763f452ba55ee6ddd9f63f5bc523807e7288f.tar.xz
penes-snac2-6f3763f452ba55ee6ddd9f63f5bc523807e7288f.zip
Show 'Event' object types as Notes.
Diffstat (limited to 'format.c')
-rw-r--r--format.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/format.c b/format.c
index 8d51351..631c11c 100644
--- a/format.c
+++ b/format.c
@@ -311,9 +311,8 @@ xs_str *sanitize(const char *content)
311 311
312 s = xs_str_cat(s, s2); 312 s = xs_str_cat(s, s2);
313 } else { 313 } else {
314 /* else? just show it with encoded code.. that's it. */ 314 if (strcmp(v, "</div>"))
315 xs *el = encode_html(v); 315 s = xs_str_cat(s, "<p>");
316 s = xs_str_cat(s, el);
317 } 316 }
318 } 317 }
319 else { 318 else {