zero-width-strip
Strip zero-width and bidi-control Unicode chars from text. Closes the "invisible payload" prompt-injection channel.
use ;
let dirty = "hello\u{200B}\u{202E}world";
assert!;
assert_eq!;
Covers U+200B–U+200F, U+202A–U+202E, U+2060–U+2064, U+2066–U+2069, U+180E, U+FEFF. Zero deps. MIT or Apache-2.0.