I have a table in which one of the columns is website urls, how do I add hyperlink with these urls in a popup in leaflet? here is my code:
content <- paste(sep = "\n",
my_table$names,
my_table$websites)
my_map <- leaflet(my_table) %>%
setView(lng = -98.583, lat = 39.833, zoom = 4) %>%
addTiles() %>%
addProviderTiles(providers$Wikimedia) %>%
addMarkers(
clusterOptions = markerClusterOptions(),
popup = htmlEscape(content),
icon = my_icon
)