Convert HTML content to R Shiny tags
Examples
if (interactive()) {
library(charpente)
bs4_card <- '<div class="card" style="width: 18rem;">
<img class="card-img-top" src="..." alt="Card image cap">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Some quick example text.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>'
html_2_R(bs4_card)
## With non standard attributes
tag <- "<div data-toggle='accordion'></div>"
html_2_R(tag)
}