We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 252bbe0 commit fa254caCopy full SHA for fa254ca
components/search/src/lib.rs
@@ -14,12 +14,10 @@ static AMMONIA: Lazy<ammonia::Builder<'static>> = Lazy::new(|| {
14
let mut clean_content = HashSet::new();
15
clean_content.insert("script");
16
clean_content.insert("style");
17
- let mut rm_tags = HashSet::new();
18
- rm_tags.insert("pre");
+ clean_content.insert("pre");
19
let mut builder = ammonia::Builder::new();
20
builder
21
.tags(HashSet::new())
22
- .rm_tags(rm_tags)
23
.tag_attributes(HashMap::new())
24
.generic_attributes(HashSet::new())
25
.link_rel(None)
@@ -89,7 +87,6 @@ fn fill_index(
89
87
row.push(body);
90
88
};
91
}
92
-
93
row
94
95
0 commit comments