Escape text for various formats
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")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.