HtmlAttrStr: HtmlAttrStr Convert the arguments into strings to be used as...

View source: R/Helpers.R

HtmlAttrStrR Documentation

HtmlAttrStr Convert the arguments into strings to be used as attributes in HTML.

Description

HtmlAttrStr Convert the arguments into strings to be used as attributes in HTML.

Usage

HtmlAttrStr(...)

Arguments

...

Named or unnamed arguments.

Details

See examples (should be self-explanatory)

Value

A vector of strings.

  • Named arguments are converted in the form of attribute="Value".

  • Unnamed arguments are converted as Boolean HTML attributes (like disabled or required).

The characters ".#:" and spaces

References

https://html.spec.whatwg.org/multipage/syntax.html#attributes-2

Examples

## Not run: 
cat(
  HtmlAttrStr(id="my id", A="A", "B", C=NULL, D=NA, E=Inf, F=NaN, NA, H=x, Y="Fa\"il", `Zor>ro`="Z")
)
#> id="my id" A="A" B  D="NA" NA H="2" Y="Fa_il" Zor_ro="Z"

## End(Not run)

SigurdJanson/shinyCSVImpoMod documentation built on Jan. 5, 2023, 3:57 a.m.