mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
xml: Allow entities inside CDATA tags
Fixes #1112. R=rsc CC=golang-dev https://golang.org/cl/2255042
This commit is contained in:
parent
2ee420fa5e
commit
8d87ccad0b
2 changed files with 12 additions and 1 deletions
|
|
@ -790,7 +790,7 @@ Input:
|
|||
if quote >= 0 && b == byte(quote) {
|
||||
break Input
|
||||
}
|
||||
if b == '&' {
|
||||
if b == '&' && !cdata {
|
||||
// Read escaped character expression up to semicolon.
|
||||
// XML in all its glory allows a document to define and use
|
||||
// its own character names with <!ENTITY ...> directives.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue