/** * Return this tag as HTML code. * @return This tag and it's contents (children) and the end tag * as HTML code. */ public String toHtml() { StringBuilder sb = new StringBuilder(); sb.append (super.toHtml ()); if (!isEmptyXmlTag()) { putChildrenInto(sb); if (null != getEndTag ()) putEndTagInto(sb); } return sb.toString(); }
/** * Return this tag as HTML code. * @param verbatim If <code>true</code> return as close to the original * page text as possible. * @return This tag and it's contents (children) and the end tag * as HTML code. */ public String toHtml (boolean verbatim) { StringBuffer ret; ret = new StringBuffer (); ret.append (super.toHtml (verbatim)); if (!isEmptyXmlTag ()) { putChildrenInto (ret, verbatim); if (null != getEndTag ()) putEndTagInto (ret, verbatim); } return (ret.toString ()); }