by peterthrun@ymail.com:
What steps will reproduce the problem?
http://play.golang.org/p/uKNBC4VM8I
What is the expected output?
html.EscapeString("'") → '
template.HTMLEscapeString("'") → '
What do you see instead?
html.EscapeString("'") → '
template.HTMLEscapeString("'") → '
Please provide any additional information below.
The character entity reference ' is not defined by the HTML standard
(http://www.w3.org/TR/REC-html40/sgml/entities.html)
The text/template HTMLEscapeString function does the right thing.