com.silverpeas.util.html
Class HtmlCleaner
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HtmlCleaner
public HtmlCleaner()
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.