trim
All checks were successful
ci/woodpecker/push/publish Pipeline was successful

This commit is contained in:
Mylloon 2024-06-02 19:16:56 +02:00
parent c9405d0fdb
commit de60dd23e6
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -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(),
)?)
}
)],