We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Go 1.6, Go Playground environment
Documentation of html.UnescapeString() contains a mistake. Quoting:
html.UnescapeString()
It unescapes a larger range of entities than EscapeString escapes. For example, "á" unescapes to "á", as does "á" and "&xE1;".
"á"
"á"
It should be á (there is a missing hashmark # in the doc).
á
#
The implementation is good, but it is documented falsely.
fmt.Println(html.UnescapeString(`&xE1;`)) // Output: &xE1; fmt.Println(html.UnescapeString(`á`)) // Output: á
Output is as expected.
Playground example:
http://play.golang.org/p/S5EaiVfMKs
The text was updated successfully, but these errors were encountered:
CL https://golang.org/cl/21798 mentions this issue.
Sorry, something went wrong.
a44c425
No branches or pull requests
Go 1.6, Go Playground environment
Documentation of
html.UnescapeString()
contains a mistake. Quoting:It should be
á
(there is a missing hashmark#
in the doc).The implementation is good, but it is documented falsely.
Output is as expected.
Playground example:
http://play.golang.org/p/S5EaiVfMKs
The text was updated successfully, but these errors were encountered: