powered by
Setting escape_contents to FALSE allows you to include raw HTML or TeX code in your cells.
escape_contents
FALSE
escape_contents(ht) escape_contents(ht) <- value set_escape_contents(ht, row, col, value ) map_escape_contents(ht, row, col, fn)
escape_contents() returns the escape_contents property. set_escape_contents() returns the modified huxtable.
escape_contents()
set_escape_contents()
A huxtable.
A row specifier. See rowspecs for details.
An optional column specifier.
A mapping function. See mapping-functions for details.
A logical vector or matrix.
Set to NA to reset to the default, which is TRUE.
NA
TRUE
If markdown() is TRUE for a cell, the escape_contents property will be ignored.
markdown()
sanitize() for escaping text manually.
sanitize()
ht <- huxtable( Text = "x squared", Maths = "$x^2$" ) ht <- set_escape_contents(ht, FALSE) if (FALSE) { quick_pdf(ht) }
Run the code above in your browser using DataLab