parent
8b18ca018f
commit
74b06d704d
@ -14,12 +14,10 @@ static AMMONIA: Lazy<ammonia::Builder<'static>> = Lazy::new(|| {
|
|||||||
let mut clean_content = HashSet::new();
|
let mut clean_content = HashSet::new();
|
||||||
clean_content.insert("script");
|
clean_content.insert("script");
|
||||||
clean_content.insert("style");
|
clean_content.insert("style");
|
||||||
let mut rm_tags = HashSet::new();
|
clean_content.insert("pre");
|
||||||
rm_tags.insert("pre");
|
|
||||||
let mut builder = ammonia::Builder::new();
|
let mut builder = ammonia::Builder::new();
|
||||||
builder
|
builder
|
||||||
.tags(HashSet::new())
|
.tags(HashSet::new())
|
||||||
.rm_tags(rm_tags)
|
|
||||||
.tag_attributes(HashMap::new())
|
.tag_attributes(HashMap::new())
|
||||||
.generic_attributes(HashSet::new())
|
.generic_attributes(HashSet::new())
|
||||||
.link_rel(None)
|
.link_rel(None)
|
||||||
@ -89,7 +87,6 @@ fn fill_index(
|
|||||||
row.push(body);
|
row.push(body);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
row
|
row
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user