Class Anchor

  • All Implemented Interfaces:
    NodeHandler

    public class Anchor
    extends AbstractNodeHandler
    Handles anchor (a) tags, both links and named anchors.
    Author:
    Phil DeJarnett
    • Constructor Detail

      • Anchor

        public Anchor()
    • Method Detail

      • handleNode

        public void handleNode​(NodeHandler parent,
                               org.jsoup.nodes.Element node,
                               DocumentConverter converter)
        Creates a link reference, and renders the correct output. If this happens to be a named anchor, then it is simply removed from output.
        Parameters:
        parent - The previous node walker, in case we just want to remove an element.
        node - Node to handle
        converter - Parent converter for this object.