Class JSoupHtmlCleaner

java.lang.Object
fr.paris.lutece.portal.service.html.JSoupHtmlCleaner
All Implemented Interfaces:
IHtmlCleaner

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

    • JSoupHtmlCleaner

      public JSoupHtmlCleaner()
  • Method Details

    • 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