Also add pre to the valid HTML tags.

This commit is contained in:
default 2022-10-28 21:56:24 +02:00
parent 9de7175503
commit 9af260f781

View File

@ -153,7 +153,7 @@ d_char *not_really_markdown(char *content, d_char **f_content)
const char *valid_tags[] = {
"a", "p", "br", "br/", "img", "blockquote", "ul", "li", "span", "i", "b", NULL
"a", "p", "br", "br/", "img", "blockquote", "ul", "li", "span", "i", "b", "pre", NULL
};
d_char *sanitize(d_char *content)