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 Summary
Constructors Constructor Description JSoupHtmlCleaner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringclean(String strSource)Clean HTML codeStringtext(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 String clean(String strSource)
Clean HTML code- Specified by:
cleanin interfaceIHtmlCleaner- Parameters:
strSource- The input string to clean- Returns:
- The cleaned string
-
text
public String text(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
-
-