Skip to main content

strip_ansi

Function strip_ansi 

Source
pub fn strip_ansi(text: &str) -> Cow<'_, str>
Expand description

Strip ANSI escape sequences from text.

Removes all ANSI control sequences (CSI, OSC, etc.) from the input.