]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1] 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)
commitec0b7b7de4cba3934b3433e454f30328f2c39585
treeca59c83c439c6f77d7cf48b1a084f345b133eae6
parenta200931cae0af5950f12da55c349e985f9e1d92e
[release-branch.go1] html, exp/html: escape ' and " as &#39; and &#34;, since IE8 and

««« backport a70135896879
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/html/escape.go
src/pkg/net/http/server.go
src/pkg/text/template/funcs.go