diff options
author | Brian Picciano <me@mediocregopher.com> | 2024-11-01 15:41:18 +0100 |
---|---|---|
committer | Brian Picciano <me@mediocregopher.com> | 2024-11-01 15:41:18 +0100 |
commit | 7ea9fb22ab67603f4bc6eb68b76c66177b434fe3 (patch) | |
tree | 84b935f5ffd566236e83b9431dcf8050f944861e /internal | |
parent | 76d8b138ce23687c6372b34ee71e52f2b057469f (diff) |
HTML escape pre-formatted text
Diffstat (limited to 'internal')
-rw-r--r-- | internal/gemtext/gemtext.go | 2 |
1 files changed, 1 insertions, 1 deletions
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: |