sanitize {huxtable} | R Documentation |
Escape text for various formats
Description
This escapes a string for LaTeX, HTML or RTF.
Usage
sanitize(str, type = c("latex", "html", "rtf"))
Arguments
str |
A character object. |
type |
|
Details
HTML and LaTeX code was copied over from xtable::sanitize()
.
Value
The sanitized character object.
Examples
txt <- "Make $$$ with us"
sanitize(txt, type = "latex")
[Package huxtable version 5.5.6 Index]