Skip to content

html: EscapeString(') should not be ' #3489

@gopherbot

Description

@gopherbot

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions