Create a div using htmltools::withtags

First know that you can use existing html code as-is in a shiny app UI using HTML(). See https://shiny.rstudio.com/articles/html-tags.html#raw-html

For you example, it seems like your htmltools code gives the right html code.
What is the issue exaclty ? I am not sure to correctly understand... :thinking: