aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--html.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/html.c b/html.c
index 4af536e..f06b336 100644
--- a/html.c
+++ b/html.c
@@ -47,7 +47,8 @@ char *html_encode(const char *s)
{.c = '<', .str = "&lt;"},
{.c = '&', .str = "&amp;"},
{.c = '\"', .str = "&quot;"},
- {.c = '\'', .str = "&apos;"}
+ {.c = '\'', .str = "&apos;"},
+ {.c = '\n', .str = "<br>"}
};
char buf[sizeof "a"] = {0};