Clone creates a deep copy of the Text.
()
| 197 | |
| 198 | // Clone creates a deep copy of the Text. |
| 199 | func (t *Text) Clone() *Text { |
| 200 | return &Text{bytes.Clone(t.Data), t.CData} |
| 201 | } |
| 202 | |
| 203 | // WriteTo writes the XML representation of the text to the provided writer. |
| 204 | func (t *Text) WriteTo(w TokenWriter) error { |