diff options
author | Steve Manuel <nilslice@gmail.com> | 2017-08-14 15:32:33 -0600 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2017-08-14 15:32:33 -0600 |
commit | ea351c2f06a49bc07c2ed209baad553e61eeb01a (patch) | |
tree | db5713931322be16af901cd6446207bcade558df /addons | |
parent | ddbce5d0c510970624ab5228b11b267d2c9366d3 (diff) |
unescape string in html format for select options in reference pkg
Diffstat (limited to 'addons')
-rw-r--r-- | addons/github.com/bosssauce/reference/reference.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/github.com/bosssauce/reference/reference.go b/addons/github.com/bosssauce/reference/reference.go index 753fa41..12d7769 100644 --- a/addons/github.com/bosssauce/reference/reference.go +++ b/addons/github.com/bosssauce/reference/reference.go @@ -7,6 +7,7 @@ import ( "bytes" "encoding/json" "fmt" + "html" "html/template" "log" "strings" @@ -143,7 +144,7 @@ func encodeDataToOptions(contentType, tmplString string) (map[string]string, err contentType, err.Error()) } - options[k] = v.String() + options[k] = html.UnescapeString(v.String()) } return options, nil |