processContent: Process HTML content

View source: R/utils.R

processContentR Documentation

Process HTML content

Description

Adds a css class to any HTML elements from the content that are named and which name is in the areas vector for names. This allows content to be assigned to the grid areas via named argument while still allowing other generic HTML tag attributes to be used.

Usage

processContent(content, areas)

Arguments

content

A (named) list of HTML elements.

areas

The names in content that should have a class added.

Value

A list of HTML elements.


imola documentation built on April 19, 2022, 5:09 p.m.