diff options
author | Case Duckworth | 2022-08-13 19:43:57 -0500 |
---|---|---|
committer | Case Duckworth | 2022-08-13 19:43:57 -0500 |
commit | 2dda23fd0fc479f83efd24ba5e60ebb0ba9047a1 (patch) | |
tree | 511d648621f82774854b95dcb3c5448b8a013c22 | |
parent | Escape HTML in raw blocks (diff) | |
download | ht-2dda23fd0fc479f83efd24ba5e60ebb0ba9047a1.tar.gz ht-2dda23fd0fc479f83efd24ba5e60ebb0ba9047a1.zip |
Fix escaping escape...ing
-rwxr-xr-x | ht.awk | 6 |
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() | |||
259 | function html_escape(text) | 259 | function html_escape(text) |
260 | { | 260 | { |
261 | # Sanitize HTML | 261 | # Sanitize HTML |
262 | gsub(/&/, "\\\\\\&", text) | 262 | gsub(/&/, "\\&", text) |
263 | gsub(/</, "\\\\\\<", text) | 263 | gsub(/</, "\\<", text) |
264 | gsub(/>/, "\\\\\\>", text) | 264 | gsub(/>/, "\\>", text) |
265 | return text | 265 | return text |
266 | } | 266 | } |