Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can configure the sanitizer as a standalone object to sanitize arbitrary strings too #12

Merged
merged 1 commit into from
Apr 10, 2024

Conversation

spaze
Copy link
Owner

@spaze spaze commented Apr 10, 2024

For example:

$sanitizer = new SensitiveValueSanitizer();
$sanitizer->addSanitization('🍍', '🍌');
$string = $sanitizer->sanitize('🍍🍕');

// [...]

$phpInfo = new PhpInfo($sanitizer);
$html = $phpInfo->getHtml();

@spaze spaze self-assigned this Apr 10, 2024
@spaze spaze merged commit be627cc into main Apr 10, 2024
10 checks passed
@spaze spaze deleted the spaze/sanitizer-arbitrary branch April 10, 2024 02:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant