it.sauronsoftware.feed4j.html
Class HTMLOptimizer

java.lang.Object
  extended by it.sauronsoftware.feed4j.html.HTMLOptimizer

public class HTMLOptimizer
extends java.lang.Object

HTML code optimizer. It analyzes a HTML fragment fixing common mistakes and removing those attributes and tags usually useless for a feed reader.

Author:
Carlo Pelliccia

Constructor Summary
HTMLOptimizer()
           
 
Method Summary
static java.lang.String optimize(java.lang.String html)
          This method analyzes a HTML fragment fixing common mistakes and removing those attributes and tags usually useless for a feed reader.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLOptimizer

public HTMLOptimizer()
Method Detail

optimize

public static java.lang.String optimize(java.lang.String html)
This method analyzes a HTML fragment fixing common mistakes and removing those attributes and tags usually useless for a feed reader.

Parameters:
html - The HTML fragment.
Returns:
The fixed HTML fragment.