diff options
author | r <r@freesoftwareextremist.com> | 2020-05-29 10:41:59 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2020-05-29 10:51:41 +0000 |
commit | 1ae3c33b7df83cec8afdb5f8e3cc46a0919c9ac1 (patch) | |
tree | 139d14fdf693e7e698f0986777f8721a4b5516ca /renderer | |
parent | 051908cfb7595afe1a775bf7e87d7081548884b0 (diff) | |
download | bloat-1ae3c33b7df83cec8afdb5f8e3cc46a0919c9ac1.tar.gz bloat-1ae3c33b7df83cec8afdb5f8e3cc46a0919c9ac1.zip |
HTML Escape search queries
Diffstat (limited to 'renderer')
-rw-r--r-- | renderer/renderer.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/renderer/renderer.go b/renderer/renderer.go index 4d35ba7..a15bebf 100644 --- a/renderer/renderer.go +++ b/renderer/renderer.go @@ -2,6 +2,7 @@ package renderer import ( "fmt" + htemplate "html/template" "io" "strconv" "strings" @@ -145,6 +146,7 @@ func NewRenderer(templateGlobPattern string) (r *renderer, err error) { "FormatTimeRFC3339": formatTimeRFC3339, "FormatTimeRFC822": formatTimeRFC822, "WithContext": withContext, + "HTMLEscape": htemplate.HTMLEscapeString, }).ParseGlob(templateGlobPattern) if err != nil { return |