| html_escape | R Documentation |
Escape text for inclusion in HTML
html_escape(x, attribute = FALSE)
x |
Character: Text to escape. Coerced with |
attribute |
Logical: If TRUE, also escape the quote characters, which must be escaped inside an attribute value but not in element text. Must be a single non-NA TRUE or FALSE. |
Character: Escaped text, carrying no class.
EDG
html_escape("a < b & c")
html_escape('say "hi"', attribute = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.