output$unit_P1 <- renderText({
req(input$substance_P1)
glue("{strong(substances |> filter(name_short_html == input$substance_P1) |> pull(tlfb_unit))}")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.