Package io.github.rabinarayanpatra.sanitizer.builtin
@NullMarked
package io.github.rabinarayanpatra.sanitizer.builtin
Built-in
FieldSanitizer implementations for common sanitization tasks
such as trimming, masking, case conversion, and slug generation.-
ClassesClassDescriptionSanitizer that trims leading and trailing whitespace and collapses internal whitespace sequences into a single space.Sanitizer that masks a credit card number by retaining only the last four digits.Sanitizer that removes aliasing from email addresses by stripping the
+aliaspart before the@.Sanitizer that escapes basic HTML special characters in rendered output.Sanitizer that masks an International Bank Account Number (IBAN), preserving only the last four characters.Sanitizer that converts input text to lowercase using the default locale.Sanitizer that trims the input string and returnsnullif the result is blank.Sanitizer that normalizes a phone number to E.164 format by stripping non-digit characters and prepending a+.Sanitizer that removes non-printable control characters from the input string.Sanitizer that replaces characters not allowed in most filenames with underscores.Sanitizer that converts the input string to sentence case by capitalizing only the first character and lowercasing the rest.Sanitizer that converts a string into a lowercase, URL-friendly "slug" format.Sanitizer that masks a U.S.Sanitizer that converts the input string to title case by capitalizing the first character of each word and lowercasing the rest.Sanitizer that trims leading and trailing whitespace from the input string.Configurable sanitizer that truncates strings to a maximum length.Sanitizer that converts the input string to uppercase using the default locale.Sanitizer that normalizes a UUID string to lowercase and validates its format.