Class HTMLUtils

java.lang.Object
com.itextpdf.tool.xml.html.HTMLUtils

public class HTMLUtils extends Object
  • Constructor Details

    • HTMLUtils

      public HTMLUtils()
  • Method Details

    • sanitize

      private static List<Chunk> sanitize(String str, boolean preserveWhiteSpace, boolean replaceNonBreakableSpaces)
      Parameters:
      str - the string to sanitize
      preserveWhiteSpace - to trim or not to trim
      Returns:
      sanitized string
    • sanitize

      public static List<Chunk> sanitize(String str, boolean preserveWhiteSpace)
    • sanitizeInline

      public static List<Chunk> sanitizeInline(String str, boolean preserveWhiteSpace)
      Sanitize the String for use in in-line tags.
      Parameters:
      str - the string to sanitize
      Returns:
      a sanitized String for use in in-line tags
    • sanitizeInline

      public static List<Chunk> sanitizeInline(String str, boolean preserveWhiteSpace, boolean replaceNonBreakableSpaces)