Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.util
Class Html2Text

java.lang.Object
  extended by net.java.sip.communicator.util.Html2Text

public class Html2Text
extends Object

A utility class that allows to extract the text content of an HTML page stripped from all formatting tags.

Author:
Emil Ivov , Yana Stamcheva, Lubomir Marinov

Constructor Summary
Html2Text()
           
 
Method Summary
static String extractText(String html)
          A utility method that allows to extract the text content of an HTML page stripped from all formatting tags.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Html2Text

public Html2Text()
Method Detail

extractText

public static String extractText(String html)
A utility method that allows to extract the text content of an HTML page stripped from all formatting tags. Method is synchronized to avoid concurrent access to the underlying HTMLEditorKit.

Parameters:
html - the HTML string that we will extract the text from.
Returns:
the text content of the html parameter.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.