Class JSoupHtmlCleaner

  • All Implemented Interfaces:
    IHtmlCleaner

    public class JSoupHtmlCleaner
    extends Object
    implements IHtmlCleaner
    This class is an implementation of IHtmlCleaner using the JTidy library
    • Constructor Detail

      • JSoupHtmlCleaner

        public JSoupHtmlCleaner()
    • Method Detail

      • clean

        public String clean​(String strSource)
        Clean HTML code
        Specified by:
        clean in interface IHtmlCleaner
        Parameters:
        strSource - The input string to clean
        Returns:
        The cleaned string
      • text

        public String text​(String strSource)
        Description copied from interface: IHtmlCleaner
        Transorm HTML code to text
        Specified by:
        text in interface IHtmlCleaner
        Parameters:
        strSource - The input string to clean
        Returns:
        The cleaned string