Fix search query escaping

This commit is contained in:
r 2020-10-17 16:25:08 +00:00
parent 9c5cb289f9
commit 7d989d56e5
4 changed files with 11 additions and 10 deletions

View file

@ -2,7 +2,6 @@ package renderer
import (
"fmt"
htemplate "html/template"
"io"
"strconv"
"strings"
@ -146,7 +145,6 @@ func NewRenderer(templateGlobPattern string) (r *renderer, err error) {
"FormatTimeRFC3339": formatTimeRFC3339,
"FormatTimeRFC822": formatTimeRFC822,
"WithContext": withContext,
"HTMLEscape": htemplate.HTMLEscapeString,
}).ParseGlob(templateGlobPattern)
if err != nil {
return