Skip to content

Commit

Permalink
unescape string in html format for select options in reference pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
nilslice committed Aug 14, 2017
1 parent ddbce5d commit ea351c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addons/github.com/bosssauce/reference/reference.go
Expand Up @@ -7,6 +7,7 @@ import (
"bytes" "bytes"
"encoding/json" "encoding/json"
"fmt" "fmt"
"html"
"html/template" "html/template"
"log" "log"
"strings" "strings"
Expand Down Expand Up @@ -143,7 +144,7 @@ func encodeDataToOptions(contentType, tmplString string) (map[string]string, err
contentType, err.Error()) contentType, err.Error())
} }


options[k] = v.String() options[k] = html.UnescapeString(v.String())
} }


return options, nil return options, nil
Expand Down

0 comments on commit ea351c2

Please sign in to comment.