sanitize | R Documentation |
This escapes a string for LaTeX, HTML or RTF.
sanitize(str, type = c("latex", "html", "rtf"))
str |
A character object. |
type |
|
HTML and LaTeX code was copied over from xtable::sanitize()
.
The sanitized character object.
txt <- "Make $$$ with us"
sanitize(txt, type = "latex")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.