Escape HTML entities contained in a character vector so that it can be safely included as text or an attribute value within an HTML document
htmlEscape(text, attribute = FALSE)
Text to escape
Escape for use as an attribute value
Character vector with escaped text.