From: Ruben Beltran del Rio Date: Tue, 4 Feb 2025 11:49:40 +0000 (+0100) Subject: Replace HTML tags in HTML X-Git-Tag: 1.0.2~1 X-Git-Url: https://git.r.bdr.sh/rbdr/gema_texto/commitdiff_plain/78c0ce81fd2f45e0c5ec237602cd1d4e530d3076 Replace HTML tags in HTML --- diff --git a/src/html_renderer.rs b/src/html_renderer.rs index 61d2d73..5251d0a 100644 --- a/src/html_renderer.rs +++ b/src/html_renderer.rs @@ -124,7 +124,10 @@ fn line_content(line: &GeminiLine) -> String { format!("
")
         }
         GeminiLine::PreformattedToggle(false, _) => "
".to_string(), - GeminiLine::Text(content, true) | GeminiLine::Quote(content) => content.to_string(), + GeminiLine::Text(content, true) | GeminiLine::Quote(content) => content + .replace('<', "<") + .replace('>', ">") + .to_string(), } }