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(
|
||||
data_attr,
|
||||
// Remove mails
|
||||
&el.get_attribute(data_attr)
|
||||
el.get_attribute(data_attr)
|
||||
.unwrap()
|
||||
.split_whitespace()
|
||||
.filter(|word| !word.contains('@'))
|
||||
.collect::<Vec<&str>>()
|
||||
.join(" "),
|
||||
.join(" ")
|
||||
.trim(),
|
||||
)?)
|
||||
}
|
||||
)],
|
||||
|
|
Loading…
Reference in a new issue