Class CleanTextRenderer


  • public class CleanTextRenderer
    extends WikiRenderer
    A simple renderer that just renders all the text() nodes from the DOM tree. This is very useful for cleaning away all of the XHTML.
    Since:
    2.4
    • Constructor Detail

      • CleanTextRenderer

        public CleanTextRenderer​(Context context,
                                 WikiDocument doc)
        Create a renderer.
        Parameters:
        context - A WikiContext in which the rendering will take place.
        doc - The WikiDocument which shall be rendered.
    • Method Detail

      • getString

        public java.lang.String getString()
        Renders and returns the end result.
        Specified by:
        getString in class WikiRenderer
        Returns:
        A rendered string.