@Override
    public Tag createTagNode(Page arg0, int arg1, int arg2, Vector arg3) {

        try {
            String tagName = ((Attribute)arg3.get(0)).getName().toLowerCase();
            // end tags have names like "/a"....
            if (tagName.charAt(0) == '/') {
                tagName = tagName.substring(1);
            }
            Tag result = super.createTagNode(arg0, arg1, arg2, arg3);
            if (!keepTag(tagName)) {
                result = new CmsInvisibleTag(result);
            }
            return result;
        } catch (RuntimeException rte) {
            if (LOG.isErrorEnabled()) {
                // log here, as htmlparser 1.5 did swallow exceptions from here and threw NPEs from
                // other places
                LOG.error(rte);
            }
            throw rte;
        }
    }
@ Override public Tag createTagNode ( Page arg0 , int arg1 , int arg2 , Vector arg3 ) { try { String tagName = ( ( Attribute ) arg3 . get ( 0 ) ) . getName ( ) . toLowerCase ( ) ; if ( tagName . charAt ( 0 ) == '/' ) { tagName = tagName . substring ( 1 ) ; } Tag result = super . createTagNode ( arg0 , arg1 , arg2 , arg3 ) ; if ( ! keepTag ( tagName ) ) { result = new CmsInvisibleTag ( result ) ; } return result ; } catch ( RuntimeException rte ) { if ( LOG . isErrorEnabled ( ) ) { LOG . error ( rte ) ; } throw rte ; } }
@see org.htmlparser.PrototypicalNodeFactory#createTagNode(org.htmlparser.lexer.Page, int,
int, java.util.Vector)