DhHTMLGenerator.addInnerTag

Overview | Methods | Fields | This Package | All Packages

DhHTMLGenerator.addInnerTag

Adds an inner tag inside the current tag, but encloses its contents.

Syntax

protected final void addInnerTag( String strTag, String strAttrs, boolean fClose )

Parameters

strTag

The new inner tag name.

strAttrs

The new inner tag's attribute string(s).

fClose

Set to true to also add the closing tag for this tag; otherwise, set to false.

Remarks

This tag appears between the contents and any existing inner tags.

For example, consider the following original HTML:

<SPAN id=span1>Hello!</SPAN>

After calling addInnerTag( "B", "id=theBold", true ), the HTML appears as follows:

<SPAN id=span1><B id=theBold>Hello!</B></SPAN>