com.silverpeas.util.html
Class HtmlCleaner

java.lang.Object
  extended by com.silverpeas.util.html.HtmlCleaner

public class HtmlCleaner
extends Object

Remove all tags from a HTML fragment - all entities are replaced by their value.

Author:
sfariello

Constructor Summary
HtmlCleaner()
           
 
Method Summary
 String cleanHtmlFragment(String html)
          Remove all tags from a HTML fragment - all entities are replaced by their value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlCleaner

public HtmlCleaner()
Method Detail

cleanHtmlFragment

public String cleanHtmlFragment(String html)
                         throws IOException
Remove all tags from a HTML fragment - all entities are replaced by their value.

Parameters:
html - a HTML fragment.
Returns:
a String where all tags from a HTML fragment are removed and all entities are replaced by their value.
Throws:
IOException


Copyright © 2016 Silverpeas. All Rights Reserved.