EscapeText writes to w the properly escaped XML equivalent of the plain text data s.
(w io.Writer, s []byte)
| 1900 | // EscapeText writes to w the properly escaped XML equivalent |
| 1901 | // of the plain text data s. |
| 1902 | func EscapeText(w io.Writer, s []byte) error { |
| 1903 | return escapeText(w, s, true) |
| 1904 | } |
| 1905 | |
| 1906 | // escapeText writes to w the properly escaped XML equivalent |
| 1907 | // of the plain text data s. If escapeNewline is true, newline |
no test coverage detected