Allow <p> tag in post content
This commit is contained in:
parent
9cff428758
commit
5be7802bf1
1 changed files with 2 additions and 1 deletions
|
@ -1,13 +1,14 @@
|
|||
use crate::errors::ValidationError;
|
||||
use crate::utils::html::clean_html_strict;
|
||||
|
||||
const CONTENT_ALLOWED_TAGS: [&str; 6] = [
|
||||
const CONTENT_ALLOWED_TAGS: [&str; 7] = [
|
||||
"a",
|
||||
"br",
|
||||
"pre",
|
||||
"code",
|
||||
"strong",
|
||||
"em",
|
||||
"p",
|
||||
];
|
||||
|
||||
pub fn clean_content(
|
||||
|
|
Loading…
Reference in a new issue