Raw HTML to R: converting <div class="x">text</div> to div("text",class="x") through a function

Hi @m.merchant

This should be fixed in the latest version. Try to run the below and let me know if you run into any issues.

# libraries ----
remotes::install_github("zac-garland/zgtools",force = T)
zgtools::detach_packages()
zgtools::zg_core_libs()

# html and conversion ----
pg <- read_html("https://getbootstrap.com/docs/4.5/components/buttons/")

raw_html <- pg %>% 
  html_nodes("pre") %>% 
  .[[1]] %>% 
  html_text()

# convert html to r and copy to clip
zgtools::raw_html_to_r(raw_html)