get_jecfa_name.Rd
This function extracts the name of the chemical from the JECFA database.
get_jecfa_name(page)
(xml_document) The page content.
The name of the chemical.
url <- stringr::str_c( "https://", "apps.who.int/", "food-additives-contaminants-jecfa-database/Home/Chemical/", "1" ) page <- rvest::read_html(url) get_jecfa_name(page) #> [1] "KARAYA GUM"