From 7ea9fb22ab67603f4bc6eb68b76c66177b434fe3 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Fri, 1 Nov 2024 15:41:18 +0100 Subject: HTML escape pre-formatted text --- internal/gemtext/gemtext.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/gemtext') diff --git a/internal/gemtext/gemtext.go b/internal/gemtext/gemtext.go index 83a1be3..76a990e 100644 --- a/internal/gemtext/gemtext.go +++ b/internal/gemtext/gemtext.go @@ -74,7 +74,7 @@ loop: continue case pft: - write(line) + write(html.EscapeString(line)) continue case len(strings.TrimSpace(line)) == 0: -- cgit v1.2.3