Class Sanitizer

java.lang.Object
org.apache.abdera.i18n.text.Sanitizer

@Deprecated(since="2021-07-29") public class Sanitizer extends Object
Deprecated.
  • Field Details

  • Constructor Details

    • Sanitizer

      public Sanitizer()
      Deprecated.
  • Method Details

    • sanitize

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

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

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

      public static String sanitize(String slug, String filler, String pattern)
      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)
      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)