]> Cypherpunks repositories - gostls13.git/commit
exp/html: replace NUL bytes in plaintext, raw text, and RCDATA
authorAndrew Balholm <andybalholm@gmail.com>
Thu, 26 Jul 2012 23:27:10 +0000 (09:27 +1000)
committerNigel Tao <nigeltao@golang.org>
Thu, 26 Jul 2012 23:27:10 +0000 (09:27 +1000)
commit55f0c8b2cddff16de2bf101ec997bf96813615d4
tree95ceed44c71677c2cecb8fa7ab1500b38f408a50
parentd399b681a4d307fa5a09dd15c8cf96adeccb6db4
exp/html: replace NUL bytes in plaintext, raw text, and RCDATA

If NUL bytes occur inside certain elements, convert them to U+FFFD
replacement character.

Pass 1 additional test.

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