From 5b9ff828ef51fbe9e411eab7460583cba5b5287d Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sat, 4 Feb 2023 04:41:23 +0000 Subject: fix(gemini_to_html.rs): remove html escaping --- src/gemini_to_html.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') 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(); -- cgit v1.2.3