dot-html_to_cli: Translate HTML for Display with the 'cli' Package

.html_to_cliR Documentation

Translate HTML for Display with the 'cli' Package

Description

Strips tags and styles, replacing these with styling codes used by 'cli'.

Usage

.html_to_cli(chr_html)

Arguments

chr_html

HTML code to be stripped.

Details

As part of the 'rcm' package, this function intends to handle only those HTML tags that are likely to appear in a REDCap field label.

Value

Character string for display with 'cli::cli_text()'.


MichaelPascale/rcm documentation built on July 14, 2022, 2:44 a.m.