Skip to main content

escape_text

Function escape_text 

pub fn escape_text(bytes: &[u8]) -> String
Expand description

The text of one line of a file, kept one line: a control character other than a tab is written \xNN; the text is otherwise as it is (a backslash too), and bytes that are not UTF-8 are the replacement character.