HTML: Mark Characters as HTML

Description Usage Arguments Value Examples

View source: R/tags.R

Description

Marks the given text as HTML, which means the tag functions will know not to perform HTML escaping on it.

Usage

1
HTML(text, ..., .noWS = NULL)

Arguments

text

The text value to mark with HTML

...

Any additional values to be converted to character and concatenated together

.noWS

Character vector used to omit some of the whitespace that would normally be written around this HTML. Valid options include before, after, and outside (equivalent to before and end).

Value

The same value, but marked as HTML.

Examples

1
2
el <- div(HTML("I like <u>turtles</u>"))
cat(as.character(el))

htmltools documentation built on July 8, 2020, 6:19 p.m.

Related to HTML in htmltools...