Class HtmlParserContentTransformer

  • All Implemented Interfaces:
    ContentWorker, ContentTransformer, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware

    public class HtmlParserContentTransformer
    extends AbstractContentTransformer2
    Content transformer which wraps the HTML Parser library for parsing HTML content.

    Since HTML Parser was updated from v1.6 to v2.1, META tags defining an encoding for the content via http-equiv=Content-Type will ONLY be respected if the encoding of the content item itself is set to ISO-8859-1.

    Tika Note - could be converted to use the Tika HTML parser, but we'd potentially need a custom text handler to replicate the current settings around links and non-breaking spaces.

    Author:
    Derek Hulley
    See Also:
    http://htmlparser.sourceforge.net, StringBean, HTML Parser