escape_contents: Escape or unescape text in cells

Description Usage Arguments Details Value See Also Examples

Description

Setting escape_contents to FALSE allows you to include raw HTML or TeX code in your cells.

Usage

1
2
3
4

Arguments

ht

A huxtable.

row

A row specifier. See rowspecs for details.

col

An optional column specifier.

fn

A mapping function. See mapping-functions for details.

value

A logical vector or matrix.

Set to NA to reset to the default, which is TRUE.

Details

If markdown() is TRUE for a cell, the escape_contents property will be ignored.

Value

escape_contents() returns the escape_contents property. set_escape_contents() returns the modified huxtable.

See Also

sanitize() for escaping text manually.

Examples

1
2
3
4
5
6
7
8
9
ht <- huxtable(
        Text   = "x squared",
        Maths  = "$x^2$"
      )
ht <- set_escape_contents(ht, FALSE)
## Not run: 
  quick_pdf(ht)

## End(Not run)

huxtable documentation built on May 15, 2021, 1:09 a.m.