Package au.id.jericho.lib.html

Examples of au.id.jericho.lib.html.TextExtractor


  }
 
  private static String extractText(String htmlContent) {
    if (htmlContent != null && htmlContent.length() > 0) {
      Source source = new Source(htmlContent);
      TextExtractor extractor = new TextExtractor(source);
      extractor.setConvertNonBreakingSpaces(true);
      extractor.setExcludeNonHTMLElements(false);
      extractor.setIncludeAttributes(false);
      String output = extractor.toString();
      if (output != null && output.length() > 0) {
        return output;
      }
    }
    return null;
View Full Code Here

TOP

Related Classes of au.id.jericho.lib.html.TextExtractor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.