diff options
Diffstat (limited to 'src/html_renderer.rs')
| -rw-r--r-- | src/html_renderer.rs | 5 |
1 files changed, 4 insertions, 1 deletions
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!("<pre aria-label=\"{alt_text}\">") } GeminiLine::PreformattedToggle(false, _) => "</pre>".to_string(), - GeminiLine::Text(content, true) | GeminiLine::Quote(content) => content.to_string(), + GeminiLine::Text(content, true) | GeminiLine::Quote(content) => content + .replace('<', "<") + .replace('>', ">") + .to_string(), } } |