public final class

HTMLSearchableTextExtractor

extends Object
java.lang.Object
   ↳ com.atlassian.confluence.search.lucene.extractor.HTMLSearchableTextExtractor

Class Overview

A utility class that will take a String formatted as HTML and remove all tags and attributes leaving only the text nodes and CData content intact. Inline elements will be simply stripped, however the start of block elements such as 'p' will be replaced with a newline.

The tag stripper also knows which elements in the Confluence schema should be removed entirely for indexing.

Summary

Public Constructors
HTMLSearchableTextExtractor()
Public Methods
static String stripTags(String htmlSource)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public HTMLSearchableTextExtractor ()

Public Methods

public static String stripTags (String htmlSource)

Throws
SAXException