This commit is contained in:
parent
c9405d0fdb
commit
de60dd23e6
1 changed files with 3 additions and 2 deletions
|
@ -469,12 +469,13 @@ fn mail_obfuscation(html: &str) -> (String, bool) {
|
||||||
Ok(el.set_attribute(
|
Ok(el.set_attribute(
|
||||||
data_attr,
|
data_attr,
|
||||||
// Remove mails
|
// Remove mails
|
||||||
&el.get_attribute(data_attr)
|
el.get_attribute(data_attr)
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.split_whitespace()
|
.split_whitespace()
|
||||||
.filter(|word| !word.contains('@'))
|
.filter(|word| !word.contains('@'))
|
||||||
.collect::<Vec<&str>>()
|
.collect::<Vec<&str>>()
|
||||||
.join(" "),
|
.join(" ")
|
||||||
|
.trim(),
|
||||||
)?)
|
)?)
|
||||||
}
|
}
|
||||||
)],
|
)],
|
||||||
|
|
Loading…
Reference in a new issue