Class HTMLUtils


  • public class HTMLUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      HTMLUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<Chunk> sanitize​(java.lang.String str, boolean preserveWhiteSpace)  
      private static java.util.List<Chunk> sanitize​(java.lang.String str, boolean preserveWhiteSpace, boolean replaceNonBreakableSpaces)  
      static java.util.List<Chunk> sanitizeInline​(java.lang.String str, boolean preserveWhiteSpace)
      Sanitize the String for use in in-line tags.
      static java.util.List<Chunk> sanitizeInline​(java.lang.String str, boolean preserveWhiteSpace, boolean replaceNonBreakableSpaces)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HTMLUtils

        public HTMLUtils()
    • Method Detail

      • sanitize

        private static java.util.List<Chunk> sanitize​(java.lang.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 java.util.List<Chunk> sanitize​(java.lang.String str,
                                                     boolean preserveWhiteSpace)
      • sanitizeInline

        public static java.util.List<Chunk> sanitizeInline​(java.lang.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 java.util.List<Chunk> sanitizeInline​(java.lang.String str,
                                                           boolean preserveWhiteSpace,
                                                           boolean replaceNonBreakableSpaces)