diff options
Diffstat (limited to 'src/pkg/xml/xml.go')
| -rw-r--r-- | src/pkg/xml/xml.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/pkg/xml/xml.go b/src/pkg/xml/xml.go index 67cbb824f..1ddb896de 100644 --- a/src/pkg/xml/xml.go +++ b/src/pkg/xml/xml.go @@ -815,7 +815,7 @@ Input: p.err = SyntaxError("invalid character entity &" + s + ";") return nil } - p.buf.Write(strings.Bytes(text)) + p.buf.Write([]byte(text)) b0, b1 = 0, 0 continue Input } @@ -1508,11 +1508,11 @@ var htmlAutoClose = []string{ } var ( - esc_quot = strings.Bytes(""") // shorter than """ - esc_apos = strings.Bytes("'") // shorter than "'" - esc_amp = strings.Bytes("&") - esc_lt = strings.Bytes("<") - esc_gt = strings.Bytes(">") + esc_quot = []byte(""") // shorter than """ + esc_apos = []byte("'") // shorter than "'" + esc_amp = []byte("&") + esc_lt = []byte("<") + esc_gt = []byte(">") ) // Escape writes to w the properly escaped XML equivalent |
