]> Sergey Matveev's repositories - zk.zsh.git/commitdiff
Do not interpret escape sequences in HTML
authorSergey Matveev <stargrave@stargrave.org>
Tue, 15 Mar 2022 15:54:48 +0000 (18:54 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Tue, 15 Mar 2022 15:54:48 +0000 (18:54 +0300)
zk.zsh

diff --git a/zk.zsh b/zk.zsh
index d45194d78a663d699cec2976d6c85b82268bcc75..cfc95a4796212116896c973267ab707a6c74552f 100755 (executable)
--- a/zk.zsh
+++ b/zk.zsh
@@ -83,7 +83,7 @@ genHTML() {
         getrel $page $p
         data="${data//\[${p}\]/<a href=\"${REPLY}.html\">[$p]</a>}"
     }
-    print "<\!DOCTYPE html>
+    print -r "<\!DOCTYPE html>
 <html><head><title>$page (${pages[$page]})</title></head><body><pre>
 $data
 </pre>"