Create a sanitization function that applies the given rules to each call.
The sanitization rules to apply
A function that sanitizes a string with the configured rules
Create a sanitization function that applies the given rules to each call.