Adds an enclosing tag around the current tag.
protected final void addEnclosingTag( String strTag, String strAttrs, boolean fClose )
strTag
The new enclosing tag name.
strAttrs
The new enclosing tag's attribute string or strings.
fClose
Set to true to additionally add the closing tag for this tag.
This tag also encloses any existing enclosing tags.
As an example of using this method, supposed you have the following as HTML content:
<SPAN id=span1>Hello!</SPAN>
After calling addEnclosingTag( "B", "id=theBold", true ), the HTML appears as follows:
<B id=theBold><SPAN id=span1>Hello!</SPAN></B>