printTag.HtmlPrintStream: Prints a single HTML tag with attributes

Description Usage Arguments Value Author(s) See Also

Description

Prints a single HTML tag with attributes to the connected output stream. With endTag=FALSE only the starting tag will be printed. All attribute values are automatically escaped and quoted.

Usage

1
2
## S3 method for class 'HtmlPrintStream'
printTag(this, tag, ..., attributes=NULL, endTag=NULL)

Arguments

tag

The name of the HTML tag.

...

Named argument values whose names are used as attribute names and whose values are used as attribute values. The values of the unnamed arguments will be printed after the first tag (in the body of the tag).

attributes

Similar to ... this argument provides a way of specifying attributes. Useful, if other methods calls this method.

endTag

If TRUE the end tag is written. If FALSE it is not written. If NULL an internal lookup table will be used to decided if the tag should have an end tag or not. Default value is NULL.

Value

Returns nothing.

Author(s)

Henrik Bengtsson (http://www.braju.com/R/)

See Also

*escape(). *pushTag().


HenrikBengtsson/R.io documentation built on May 6, 2019, 11:54 p.m.