Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
Signed-off-by: Kartikay <[email protected]>
  • Loading branch information
kartikaysaxena committed Dec 26, 2023
1 parent d112084 commit e59b7f1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/thanos/rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import (
"bytes"
"context"
"fmt"
"text/template"
"html/template"
texttemplate "text/template"
"math/rand"
"net/http"
"net/url"
Expand Down Expand Up @@ -939,7 +940,7 @@ func tableLinkForExpression(tmpl string, expr string) (string, error) {
escapedExpression := url.QueryEscape(expr)

escapedExpr := Expression{Expr: escapedExpression}
t, err := template.New("url").Parse(tmpl)
t, err := texttemplate.New("url").Parse(tmpl)
if err != nil {
return "", errors.Wrap(err, "failed to parse template")
}
Expand Down

0 comments on commit e59b7f1

Please sign in to comment.