]> Cypherpunks repositories - gostls13.git/commit
html: handle character entities without semicolons
authorAndrew Balholm <andybalholm@gmail.com>
Wed, 20 Jul 2011 23:10:49 +0000 (09:10 +1000)
committerNigel Tao <nigeltao@golang.org>
Wed, 20 Jul 2011 23:10:49 +0000 (09:10 +1000)
commit816c972ff04c3975b29605a6cb9b16382460e47c
treeed031018c523d96154db4c2ae31317bf4d1f65db
parent78c89d21bcb33b71d716165a9204c397cf1eaf63
html: handle character entities without semicolons

Fix the TODO: unescape("&notit;") should be "¬it;"

Also accept digits in entity names.

R=nigeltao
CC=golang-dev, rsc
https://golang.org/cl/4781042
src/pkg/html/entity.go
src/pkg/html/entity_test.go
src/pkg/html/escape.go
src/pkg/html/token.go
src/pkg/html/token_test.go