html.UnescapeString("Should this word, &currency, be unescaped?")  

https://play.golang.org/p/vN5bvfooq8H

Aren't HTML entities supposed to end with a semicolon? See 
https://developer.mozilla.org/en-US/docs/Glossary/Entity

I couldn't see any edge cases mentioned in the source 
<https://github.com/golang/go/blob/master/src/html/escape.go#L182> .

Thanks.


-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/baea05b9-6634-495b-a45f-78f02ec7a20bn%40googlegroups.com.

Reply via email to