Commit 7148731b188faf06fc0d1d9a7db2ec6e794f5d64

Thomas de Grivel 2023-02-15T20:37:22

>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/bin/ansi2html b/bin/ansi2html
index 019da3e..0a31ea8 100755
--- a/bin/ansi2html
+++ b/bin/ansi2html
@@ -2,9 +2,9 @@
 set -e
 
 ansi2html_sed () {
-    sed -e 's|&|&|g' \
-        -e 's|<|&lt;|g' \
+    sed -e 's|<|&lt;|g' \
         -e 's|>|&gt;|g' \
+        -e 's|&|&amp;|g' \
         -e "s|$(printf '\33\\[0;34m')|<span style=\"color: blue;\">|g" \
         -e "s|$(printf '\33\\[0;35m')|<span style=\"color: purple;\">|g" \
         -e "s|$(printf '\33\\[0m')|</span>|g"