Package org.silverpeas.core.util.html
Class HtmlCleaner
- java.lang.Object
-
- org.silverpeas.core.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
Constructors Constructor Description HtmlCleaner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
cleanHtmlFragment(String html)
Remove all tags from a HTML fragment - all entities are replaced by their value.
-
-
-
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
-
-