css_inline {juicyjuice}R 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/>")


[Package juicyjuice version 0.1.0 Index]