Class HTMLUtils


  • public class HTMLUtils
    extends Object
    Author:
    redlab_b
    • Constructor Detail

      • HTMLUtils

        public HTMLUtils()
    • Method Detail

      • 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)