commit 78986c0f6c054f0b87de9de12db36ad9e97f1fcb
parent 7bba547637129f9b883a983fe45e4ecf08eb85ea
Author: David Schlachter <t480-debian-git@schlachter.ca>
Date: Fri, 9 Jan 2026 00:18:27 -0500
Render escaped ampersands
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/ui.go b/ui.go
@@ -184,6 +184,7 @@ func formatDefinitionForDisplay(policy bluemonday.Policy, definition string, max
// Replace common HTML entities
str = strings.ReplaceAll(str, "'", "’")
+ str = strings.ReplaceAll(str, "&", "&")
// Wrap
width := min(maxWidth, 80)