Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


htmltools (version 0.5.8.1)

htmlEscape: Escape HTML entities

Description

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

Usage

htmlEscape(text, attribute = FALSE)

Value

Character vector with escaped text.

Arguments

text

Text to escape

attribute

Escape for use as an attribute value