]> Cypherpunks repositories - gostls13.git/commit
html, exp/html: escape ' and " as ' and ", since IE8 and
authorNigel Tao <nigeltao@golang.org>
Wed, 11 Apr 2012 23:35:43 +0000 (09:35 +1000)
committerNigel Tao <nigeltao@golang.org>
Wed, 11 Apr 2012 23:35:43 +0000 (09:35 +1000)
commit6277656d69640da9166bbac2a132a3ddee61dcac
tree6f4080c783f61ea8edd829c8afb329d9ee408628
parent772e8ff4584ac6b97d8f3c38f0b21161ca72fe81
html, exp/html: escape ' and " as &#39; and &#34;, since IE8 and
below do not support &apos;.

This makes package html consistent with package text/template's
HTMLEscape function.

Fixes #3489.

R=rsc, mikesamuel, dsymonds
CC=golang-dev
https://golang.org/cl/5992071
src/pkg/exp/html/escape.go
src/pkg/exp/html/render_test.go
src/pkg/exp/html/token_test.go
src/pkg/html/escape.go
src/pkg/net/http/server.go
src/pkg/text/template/funcs.go