encoding/xml: CDATA section allows invalid characters #53728
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
A simple
main.go
program:Run and store the output:
Try validate the xml:
What did you expect to see?
encode error, or
no error with invalid character being replaced
What did you see instead?
encode success, but xmllint report parse error
Reference:
The text was updated successfully, but these errors were encountered: