//! Control-character removal for safe ASS subtitle text processing.
//!
//! Strips problematic control characters while preserving the essential
//! `\n`, `\t`, and `\r` characters needed for layout.
use String;
/// Remove or normalize control characters for safe text processing
///
/// Removes potentially problematic control characters while preserving
/// essential ones like newlines and tabs. Helps ensure text is safe
/// for processing and display.
///
/// # Arguments
///
/// * `text` - Input text that may contain control characters
///
/// # Returns
///
/// String with control characters removed or normalized