This escapes a string for LaTeX, HTML, Typst or RTF.
Usage
sanitize(str, type = c("latex", "html", "typst", "rtf"))Details
HTML and LaTeX code was copied over from xtable::sanitize().
This escapes a string for LaTeX, HTML, Typst or RTF.
sanitize(str, type = c("latex", "html", "typst", "rtf"))HTML and LaTeX code was copied over from xtable::sanitize().