]> Cypherpunks repositories - gostls13.git/commit
exp/html: Convert \r and \r\n to \n when tokenizing
authorAndrew Balholm <andybalholm@gmail.com>
Wed, 30 May 2012 05:50:12 +0000 (15:50 +1000)
committerNigel Tao <nigeltao@golang.org>
Wed, 30 May 2012 05:50:12 +0000 (15:50 +1000)
commit4e0749a47805912a528326e3a63e5f0342b19b59
tree45d79f365c68666dd5e0e862818e14566495db58
parentafe0e97aa65be9dd0c147c4c824c12b1442ef2df
exp/html: Convert \r and \r\n to \n when tokenizing

Also escape "\r" as "&#13;" when rendering HTML.

Pass 2 additional tests.

R=nigeltao
CC=golang-dev
https://golang.org/cl/6260046
src/pkg/exp/html/escape.go
src/pkg/exp/html/testlogs/plain-text-unsafe.dat.log
src/pkg/exp/html/token.go
src/pkg/exp/html/token_test.go