Skip to main content

sanitize_display_string

Function sanitize_display_string 

Source
pub fn sanitize_display_string(s: &str) -> String
Expand description

Strip control characters from a display string (tool descriptions, help text, etc.). Preserves newlines and tabs but removes ESC, BEL, and other C0/C1 control codes that could inject ANSI escape sequences into the TUI.