Class HtmlCleanerService


  • public final class HtmlCleanerService
    extends java.lang.Object
    This class provides management methods for cleaner
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String clean​(java.lang.String strSource)
      Clean HTML code and converts it to XHTML
      static java.lang.String text​(java.lang.String strSource)
      Clean HTML code and converts it to text
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • clean

        public static java.lang.String clean​(java.lang.String strSource)
        Clean HTML code and converts it to XHTML
        Parameters:
        strSource - The input string to clean
        Returns:
        The cleaned string
      • text

        public static java.lang.String text​(java.lang.String strSource)
        Clean HTML code and converts it to text
        Parameters:
        strSource - The input string to clean
        Returns:
        The cleaned string