fr.paris.lutece.portal.service.html
Class JSoupHtmlCleaner

java.lang.Object
  extended by 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
JSoupHtmlCleaner()
           
 
Method Summary
 String clean(String strSource)
          Clean HTML code
 void init()
          init HTML cleaner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSoupHtmlCleaner

public JSoupHtmlCleaner()
Method Detail

clean

public String clean(String strSource)
             throws HtmlCleanerException
Clean HTML code

Specified by:
clean in interface IHtmlCleaner
Parameters:
strSource - The input string to clean
Returns:
The cleaned string
Throws:
HtmlCleanerException - the HtmlCleanerException

init

public void init()
init HTML cleaner

Specified by:
init in interface IHtmlCleaner


Copyright © 2014 Mairie de Paris. All Rights Reserved.