Class JSoupHtmlCleaner
- java.lang.Object
-
- fr.paris.lutece.portal.service.html.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
-
-
Constructor Summary
Constructors Constructor Description JSoupHtmlCleaner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringclean(java.lang.String strSource)Clean HTML codejava.lang.Stringtext(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
-
-
-
-
Method Detail
-
clean
public java.lang.String clean(java.lang.String strSource)
Clean HTML code- Specified by:
cleanin interfaceIHtmlCleaner- 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:IHtmlCleanerTransorm HTML code to text- Specified by:
textin interfaceIHtmlCleaner- Parameters:
strSource- The input string to clean- Returns:
- The cleaned string
-
-