Skip to main content

printable

Function printable 

Source
pub fn printable(text: &str) -> String
Expand description

Makes text from an untrusted file safe to print: control characters (escape sequences, line breaks, bell) are written as \n, \u{1b} and so on, so they cannot drive the terminal.