Class Normalizer

java.lang.Object
org.jsoup.internal.Normalizer

public final class Normalizer extends Object
Util methods for normalizing strings. Jsoup internal use only, please don't depend on this API.
  • Constructor Details

    • Normalizer

      public Normalizer()
  • Method Details

    • lowerCase

      public static String lowerCase(String input)
      Drops the input string to lower case.
    • normalize

      public static String normalize(String input)
      Lower-cases and trims the input string.
    • normalize

      @Deprecated public static String normalize(String input, boolean isStringLiteral)
      Deprecated.
      internal helper; replace with lowerCase(String) for no-trim, or normalize(String) for trim + lowercase. Will be removed in jsoup 1.24.1.
      If a string literal, just lower case the string; otherwise lower-case and trim.
    • xmlSafeTagName

      public static String xmlSafeTagName(String tagname)
      Minimal helper to get an otherwise OK HTML name like "foo<bar" to "foo_bar".