Also add code to the valid HTML tags.

This commit is contained in:
default 2022-10-28 22:01:33 +02:00
parent 9af260f781
commit f767507896

View file

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