add: check ip ban endpoint
This commit is contained in:
parent
8786cb4781
commit
e78c43ab62
8 changed files with 68 additions and 6 deletions
|
@ -31,9 +31,8 @@ pub fn clean_html(html: String, allowed_attributes: HashSet<&str>) -> String {
|
|||
.rm_tags(&["script", "style", "link", "canvas"])
|
||||
.add_tag_attributes("a", &["href", "target"])
|
||||
.add_url_schemes(&["atto"])
|
||||
.clean(&html)
|
||||
.clean(&html.replace("<video ", "<video controls "))
|
||||
.to_string()
|
||||
.replace("<video loading=", "<video controls loading=")
|
||||
}
|
||||
|
||||
/// Render markdown input into HTML
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue