Escape control characters and bound the length of a registry-supplied string
before it is embedded in an Error message or logged. Registry/proxy text is
untrusted input — left raw it is a log-injection / terminal-spoofing vector
(and the repo treats registry strings as untrusted everywhere else). Mirrors
the JSON client's preview().
Escape control characters and bound the length of a registry-supplied string before it is embedded in an Error message or logged. Registry/proxy text is untrusted input — left raw it is a log-injection / terminal-spoofing vector (and the repo treats registry strings as untrusted everywhere else). Mirrors the JSON client's
preview().