mirror of
https://github.com/getzola/zola
synced 2024-11-10 06:14:19 +00:00
parent
8b18ca018f
commit
74b06d704d
1 changed files with 1 additions and 4 deletions
|
@ -14,12 +14,10 @@ static AMMONIA: Lazy<ammonia::Builder<'static>> = Lazy::new(|| {
|
|||
let mut clean_content = HashSet::new();
|
||||
clean_content.insert("script");
|
||||
clean_content.insert("style");
|
||||
let mut rm_tags = HashSet::new();
|
||||
rm_tags.insert("pre");
|
||||
clean_content.insert("pre");
|
||||
let mut builder = ammonia::Builder::new();
|
||||
builder
|
||||
.tags(HashSet::new())
|
||||
.rm_tags(rm_tags)
|
||||
.tag_attributes(HashMap::new())
|
||||
.generic_attributes(HashSet::new())
|
||||
.link_rel(None)
|
||||
|
@ -89,7 +87,6 @@ fn fill_index(
|
|||
row.push(body);
|
||||
};
|
||||
}
|
||||
|
||||
row
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue