blob: c68528f336b4eeba4aeacb83920b22b097dc8b89 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
pub fn strip_irrelevant_content(s: &str) -> String {
let mut retn = "";
match s.find(r#"<A href="watchdontwatch.php">"#) {
Some(pos) => retn = &s[pos..],
None => (),
};
match s.find(r#"<H3>Characters"#) {
Some(pos) => retn = &s[..pos],
None => (),
};
return retn.into();
}
|