Fork me on GitHub

XMLStripper

org.onehippo.forge.utilities.hst.xml.XMLStripper

Static utility class that converts HTML string to a text version of it. It has following methods:

    /**
     * Get HippoHTML content as text, i.e. parse it's inner HTML and add only
     * the content of the elements.
     */
    String getHippoHTMLAsText(HippoHtml hippoHtml)

    /**
     * Get an XML property as text, i.e. parse it and add only the content of
     * the elements.
     */
    String getXMLPropertyAsText(Property property)