R/utils.R
ys_sanitize.Rd
Based on xtable::sanitize().
xtable::sanitize()
ys_sanitize(x) ys_dont_sanitize(x) ys_mild_sanitize(x)
text to sanitize
ys_sanitize("Concentration ($\\mu$g)") #> [1] "Concentration ($\\mu$g)" ys_sanitize("H&M") #> [1] "H\\&M"