tag_attr: create attribute string for html tags

Description Usage Arguments Value Examples

View source: R/attributes.r

Description

create attribute string for html tags

Usage

1

Arguments

...

named arguments are used as attributes, with the name being the name of the attribute (e.g., class, style). All argument must be vectors of the same length, or lenght 1 (used as a constant). NA values can be used to skip an attribute. If all attributes are NA, an NA is returned

Value

a character vector with attribute strings. Designed to be usable as the attr_str in add_tag(). If ... is empty, NA is returned

Examples

1
2
add_tag('TEXT', 'span')
add_tag('TEXT', 'span', tag_attr(class='CLASS'))

kasperwelbers/tokenbrowser documentation built on May 3, 2021, 8:33 a.m.