wrap_html: Wraps text in html for formatting

View source: R/utils-wrap.R

wrap_htmlR Documentation

Wraps text in html for formatting

Description

wrap_html returns a string with styling wrappers from a list of style tag names and values.

Usage

wrap_html(x, opts_list, type = "html", class = NULL)

Arguments

x

The string to be wrapped

opts_list

The html options to include, in named vector form

type

The style of display, defaults to "html" (currently nothing else is supported, sorry)

class

CSS classes applied to the '<span>' tag wrapping the text.


kbodwin/flair documentation built on Feb. 6, 2023, 4:24 p.m.