sanitise

Function sanitise 

Source
pub fn sanitise(input: impl AsRef<str>, to: &str) -> String
Expand description

Replaces banned characters with the given replacement.

ยงExample

use ntfsanitise::sanitise;

let input = "Hello\tworld";
let sanitised = sanitise(input, "_");
assert_eq!(sanitised, String::from("Hello_world"));