summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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}