summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2022-08-13 19:43:57 -0500
committerCase Duckworth2022-08-13 19:43:57 -0500
commit2dda23fd0fc479f83efd24ba5e60ebb0ba9047a1 (patch)
tree511d648621f82774854b95dcb3c5448b8a013c22
parentEscape HTML in raw blocks (diff)
downloadht-2dda23fd0fc479f83efd24ba5e60ebb0ba9047a1.tar.gz
ht-2dda23fd0fc479f83efd24ba5e60ebb0ba9047a1.zip
Fix escaping escape...ing
-rwxr-xr-xht.awk6
1 files changed, 3 insertions, 3 deletions
diff --git a/ht.awk b/ht.awk index a2189ec..e33fd73 100755 --- a/ht.awk +++ b/ht.awk
@@ -259,8 +259,8 @@ function html_end()
259function html_escape(text) 259function html_escape(text)
260{ 260{
261 # Sanitize HTML 261 # Sanitize HTML
262 gsub(/&/, "\\\\\\&", text) 262 gsub(/&/, "\\&", text)
263 gsub(/</, "\\\\\\&lt;", text) 263 gsub(/</, "\\&lt;", text)
264 gsub(/>/, "\\\\\\&gt;", text) 264 gsub(/>/, "\\&gt;", text)
265 return text 265 return text
266} 266}