A generic function to produce html 5 elements
html5_elements(my_html, into, insert = T, tag, text, close_tag = T, collapse = T, ...)
my_html | html in a vector of strings; output from 'create_html'. |
---|---|
into | character string; unique identifier of a line in the html. Element id is highly recommended. |
insert | T or F, if FALSE, return the element instead of inserting into html. |
tag | html tag, e.g. div, span, h3. |
text | character string; the display text on the button |
close_tag | T or F. Should closing tag be included? |
collapse | T or F. Whether or not to collapse the script into a single line. |
... | Other parameter passing to tag attributes. |