rstudio / htmltools

Tools for HTML generation and output
https://rstudio.github.io/htmltools/
214 stars 67 forks source link

Feature request: `removeDependencies()` #352

Open daattali opened 1 year ago

daattali commented 1 year ago

I wanted to remove the htmlDependencies from some shiny UI code. After looking at the available functions in htmltools, I thought suppressDependencies was my answer, and my intuition was that I could do:

suppressDependencies(ui)

to simply remove dependencies. But after looking at the documentation I saw that this is not correct.

It would be nice to have a removeDependencies() function that can be given any HTML tags and simply remove the html dependencies from it