add nobot and optout/optin

This commit is contained in:
2021-08-30 20:03:03 +02:00
parent 37a9f323e6
commit 900132970d
7 changed files with 160 additions and 19 deletions
+6
View File
@@ -112,3 +112,9 @@ impl VisExt for Visibility {
}
}
}
pub(crate) fn strip_html(content: &str) -> String {
let content = content.replace("<br/>", "<br/> ");
let content = content.replace("</p>", "</p> ");
voca_rs::strip::strip_tags(&content)
}