NewUntrustedBytes labels a byte slice as untrusted external content.
(b []byte)
| 29 | |
| 30 | // NewUntrustedBytes labels a byte slice as untrusted external content. |
| 31 | func NewUntrustedBytes(b []byte) Untrusted { |
| 32 | return Untrusted{raw: string(b)} |
| 33 | } |
| 34 | |
| 35 | // String returns the content with ANSI escape sequences neutralized. It is |
| 36 | // called automatically by the fmt package, so printing an Untrusted value is |
no outgoing calls