//! Log-injection sanitization helpers.
/// Sanitizes a string for safe emission to a text-based log sink.
///
/// - Replaces `\n` (0x0A) with the two-char literal `\n`.
/// - Replaces `\r` (0x0D) with the two-char literal `\r`.
/// - Replaces all other ASCII control characters (0x00–0x1F) with U+FFFD.
///
/// # Examples
///
/// ```
/// use security_events::sanitize::sanitize_for_text_sink;
///
/// let safe = sanitize_for_text_sink("event\ninjection\r");
/// assert_eq!(safe, "event\\ninjection\\r");
/// ```