Allow <em> and <strong> tags in post content

This commit is contained in:
silverpill 2022-10-06 21:22:40 +00:00
parent 0548e6e72a
commit ea424b97a0

View file

@ -1,7 +1,14 @@
use crate::errors::ValidationError;
use crate::utils::html::clean_html_strict;
const CONTENT_ALLOWED_TAGS: [&str; 4] = ["a", "br", "pre", "code"];
const CONTENT_ALLOWED_TAGS: [&str; 6] = [
"a",
"br",
"pre",
"code",
"strong",
"em",
];
pub fn clean_content(
content: &str,