From 2dda23fd0fc479f83efd24ba5e60ebb0ba9047a1 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sat, 13 Aug 2022 19:43:57 -0500 Subject: Fix escaping escape...ing --- ht.awk | 6 +++--- 1 file 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() function html_escape(text) { # Sanitize HTML - gsub(/&/, "\\\\\\&", text) - gsub(//, "\\\\\\>", text) + gsub(/&/, "\\&", text) + gsub(//, "\\>", text) return text } -- cgit 1.4.1-21-gabe81