src/main/java/org/jboss/pressgang/ccms/model/Topic.java
@Transient
    public String getTopicSearchText() {
        if (topicXML == null) return "";

        final Source source = new Source(topicXML);
        source.fullSequentialParse();
        return source.getTextExtractor().toString();
    }
@Transient
    public String getTopicSearchText() {
        if (topicXML == null) return "";

        final Source source = new Source(topicXML);
        source.fullSequentialParse();
        return source.getTextExtractor().toString();
    }
This function will take the XML in the topicXML String and use it to generate a text only view.
The text extraction uses Jericho - http://jericho.htmlparser.net/