Class HtmlHandler

  • All Implemented Interfaces:
    IMarkupFilter

    public final class HtmlHandler
    extends AbstractMarkupFilter
    This is a markup inline filter. It identifies HTML specific issues which make HTML not 100% xml compliant. E.g. tags like <p> often are missing the corresponding close tag.
    Author:
    Juergen Donnerstag
    • Constructor Detail

      • HtmlHandler

        public HtmlHandler()
        Construct.
    • Method Detail

      • requiresCloseTag

        public static boolean requiresCloseTag​(String name)
        Gets whether this tag does not require a closing tag.
        Parameters:
        name - The tag's name, e.g. a, br, div, etc.
        Returns:
        True if this tag does not require a closing tag
      • hasEqualTagName

        public static boolean hasEqualTagName​(ComponentTag tag1,
                                              ComponentTag tag2)
        Compare tag name including namespace
        Parameters:
        tag1 -
        tag2 -
        Returns:
        true if name and namespace are equal