Class JSoupHtmlCleaner

  • All Implemented Interfaces:
    IHtmlCleaner

    public class JSoupHtmlCleaner
    extends java.lang.Object
    implements IHtmlCleaner
    This class is an implementation of IHtmlCleaner using the JTidy library
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String clean​(java.lang.String strSource)
      Clean HTML code
      java.lang.String text​(java.lang.String strSource)
      Transorm HTML code to text
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface fr.paris.lutece.portal.service.html.IHtmlCleaner

        init
    • Constructor Detail

      • JSoupHtmlCleaner

        public JSoupHtmlCleaner()
    • Method Detail

      • clean

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

        public java.lang.String text​(java.lang.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