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.


r-for-educators/flair documentation built on Jan. 31, 2023, 11:18 a.m.