Allow <em> and <strong> tags in post content
This commit is contained in:
parent
0548e6e72a
commit
ea424b97a0
|
@ -1,7 +1,14 @@
|
||||||
use crate::errors::ValidationError;
|
use crate::errors::ValidationError;
|
||||||
use crate::utils::html::clean_html_strict;
|
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(
|
pub fn clean_content(
|
||||||
content: &str,
|
content: &str,
|
||||||
|
|
Loading…
Reference in a new issue