Allow <em> and <strong> tags in post content
This commit is contained in:
parent
0548e6e72a
commit
ea424b97a0
1 changed files with 8 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue