mirror of
https://github.com/netbirdio/easyjson.git
synced 2026-05-22 18:44:42 -07:00
escape TextMarshaler's results
This commit is contained in:
+1
-3
@@ -92,9 +92,7 @@ func (w *Writer) RawText(data []byte, err error) {
|
||||
case err != nil:
|
||||
w.Error = err
|
||||
case len(data) > 0:
|
||||
w.Buffer.AppendByte('"')
|
||||
w.Buffer.AppendBytes(data)
|
||||
w.Buffer.AppendByte('"')
|
||||
w.String(string(data))
|
||||
default:
|
||||
w.RawString("null")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user