RawBytes is Raw as a byte slice, for callers that need []byte (hashing, file writes). Same terminal caveat as Raw.
()
| 78 | // RawBytes is Raw as a byte slice, for callers that need []byte (hashing, file |
| 79 | // writes). Same terminal caveat as Raw. |
| 80 | func (u Untrusted) RawBytes() []byte { |
| 81 | return []byte(u.raw) |
| 82 | } |
| 83 | |
| 84 | // stripControl is a defensive fallback used only if the sanitizing transform |
| 85 | // errors, which the asciisanitizer does not do in practice. It drops C0 control |
no outgoing calls