css_inline: Perform CSS inlining with HTML

View source: R/css_inline.R

css_inlineR Documentation

Perform CSS inlining with HTML

Description

Given an HTML string, the css_inline() function will render that into HTML with CSS inlined into the style attribute of HTML tags.

Usage

css_inline(html)

Arguments

html

HTML provided as a string.

Value

A character vector of length one which contains the transformed HTML text.

Examples


# Take an HTML string and inline the CSS into the tags
css_inline(html = "<style>div{color:blue;}</style><div/>")


juicyjuice documentation built on Nov. 11, 2022, 1:05 a.m.