Class HtmlCleanerService

java.lang.Object
fr.paris.lutece.portal.service.html.HtmlCleanerService

public final class HtmlCleanerService extends Object
This class provides management methods for cleaner
  • Method Details

    • clean

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

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