summaryrefslogtreecommitdiff
path: root/format.c
diff options
context:
space:
mode:
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)
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);
+ if (strcmp(v, "</div>"))
+ s = xs_str_cat(s, "<p>");
}
}
else {