Class Sanitizer

    • Constructor Detail

      • Sanitizer

        public Sanitizer()
        Deprecated.
    • Method Detail

      • sanitize

        public static String sanitize​(String slug)
        Deprecated.
      • sanitize

        public static String sanitize​(String slug,
                                      String filler,
                                      boolean lower)
        Deprecated.
      • sanitize

        public static String sanitize​(String slug,
                                      String filler,
                                      boolean lower,
                                      String pattern)
        Deprecated.
      • sanitize

        public static String sanitize​(String slug,
                                      String filler,
                                      boolean lower,
                                      Normalizer.Form form,
                                      String pattern)
        Deprecated.
        Used to sanitize a string. Optionally performs Unicode Form KD normalization on a string to break extended characters down, then replaces non alphanumeric characters with a specified filler replacement.
        Parameters:
        slug - The source string
        filler - The replacement string
        lower - True if the result should be lowercase
        form - Unicode Normalization form to use (or null)