2023-05-15 18:33:14 +00:00
|
|
|
/*
|
|
|
|
Program: Bibliofile
|
|
|
|
Language: Rustc 1.69.0
|
|
|
|
ide: CLion
|
|
|
|
Operating system: Fedora 38/WSL
|
|
|
|
Purpose: This class is meant to process and return HTML formatted text as strings.
|
2023-06-28 17:16:04 +00:00
|
|
|
Last edited: 6/28/23
|
2023-05-15 18:33:14 +00:00
|
|
|
*/
|
2023-06-28 17:16:04 +00:00
|
|
|
|
|
|
|
use scraper::{Html, Selector};
|
2023-05-15 18:33:14 +00:00
|
|
|
|
2023-05-19 23:44:10 +00:00
|
|
|
pub fn main(content: String) -> String {
|
2023-05-20 23:44:13 +00:00
|
|
|
let str_content = content;
|
2023-06-28 17:16:04 +00:00
|
|
|
|
|
|
|
println!("{}", str_content);
|
|
|
|
|
|
|
|
let page = str_content;
|
|
|
|
|
2023-05-19 23:44:10 +00:00
|
|
|
return page;
|
2023-05-15 18:33:14 +00:00
|
|
|
}
|