Permalink
Browse files

unescape string in html format for select options in reference pkg

  • Loading branch information...
nilslice committed Aug 14, 2017
1 parent ddbce5d commit ea351c2f06a49bc07c2ed209baad553e61eeb01a
Showing with 2 additions and 1 deletion.
  1. +2 −1 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

0 comments on commit ea351c2

Please sign in to comment.