EscapeText writes to w the properly escaped XML equivalent of the plain text data s.
(w io.Writer, s []byte)
| 1874 | // EscapeText writes to w the properly escaped XML equivalent |
| 1875 | // of the plain text data s. |
| 1876 | func EscapeText(w io.Writer, s []byte) error { |
| 1877 | return escapeText(w, s, true) |
| 1878 | } |
| 1879 | |
| 1880 | // escapeText writes to w the properly escaped XML equivalent |
| 1881 | // of the plain text data s. If escapeNewline is true, newline |