de.smartics.properties.utils
Class HtmlUtils

Package class diagram package HtmlUtils
java.lang.Object
  extended by de.smartics.properties.utils.HtmlUtils

public final class HtmlUtils
     
     
extends Object

Utilities to deal with HTML.


Constructor Summary
HtmlUtils(String outputEncoding)
          Default constructor.
 
Method Summary
 String clean(String htmlFragment)
          Cleans up the HTML fragment.
 org.jdom.Document cleanJDom(String htmlFragment)
          Cleans up the HTML fragment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlUtils

public HtmlUtils(String outputEncoding)
Default constructor.

Parameters:
outputEncoding - the encoding used write.
Method Detail

clean

public String clean(String htmlFragment)
Cleans up the HTML fragment.

Parameters:
htmlFragment - the dirty fragment.
Returns:
the cleaned up fragment.

cleanJDom

public org.jdom.Document cleanJDom(String htmlFragment)
Cleans up the HTML fragment.

Parameters:
htmlFragment - the dirty fragment.
Returns:
the cleaned up fragment.


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.