diff options
| author | Fuwn <[email protected]> | 2023-02-04 04:41:23 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-02-04 04:41:23 +0000 |
| commit | 5b9ff828ef51fbe9e411eab7460583cba5b5287d (patch) | |
| tree | e7f619c7f6944ad14744c15a16de2ccd5213883e | |
| parent | build(rustup): move from nightly to stable) (diff) | |
| download | september-5b9ff828ef51fbe9e411eab7460583cba5b5287d.tar.xz september-5b9ff828ef51fbe9e411eab7460583cba5b5287d.zip | |
fix(gemini_to_html.rs): remove html escaping
| -rw-r--r-- | Cargo.toml | 3 | ||||
| -rw-r--r-- | src/gemini_to_html.rs | 5 |
2 files changed, 2 insertions, 6 deletions
@@ -34,9 +34,6 @@ log = "0.4.16" # Environment Variables dotenv = "0.15.0" -# HTML Entity-encode Text -htmlescape = "0.3.1" - [build-dependencies] # Environment Variables vergen = "7.0.0" diff --git a/src/gemini_to_html.rs b/src/gemini_to_html.rs index 8359cfe..72574a4 100644 --- a/src/gemini_to_html.rs +++ b/src/gemini_to_html.rs @@ -42,9 +42,8 @@ pub fn gemini_to_html( url: &Url, is_proxy: bool, ) -> (String, String) { - let ast_tree = germ::ast::Ast::from_string(&htmlescape::encode_minimal( - &String::from_utf8_lossy(&response.data), - )); + let ast_tree = + germ::ast::Ast::from_string(&String::from_utf8_lossy(&response.data)); let ast = ast_tree.inner(); let mut html = String::new(); let mut title = String::new(); |