as.tags.lorem | R Documentation |
Renders ipsum()
placeholder text as HTML tags using
htmltools::as.tags()
. By default, paragraphs are rendering <p>
tags with
htmltools::p()
, but you may provide your own paragraph wrapper
function.
In general, you won't need to manually call this function, instead you can
just drop ipsum()
text into another htmltools::tag()
.
## S3 method for class 'lorem'
as.tags(x, wrapper = NULL, ...)
x |
Object to be converted. |
wrapper |
A function that takes a character string of a paragraph or
chunk of placeholder text and returns an |
... |
Any additional parameters. |
Returns an htmltools::tagList()
.
htmltools::div(
lorem::ipsum(paragraphs = 3)
)
htmltools::tags$ul(
htmltools::as.tags(
lorem::ipsum(paragraphs = 3, sentences = 1),
wrapper = htmltools::tags$li
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.