idname <- function(x){
names <- x %>%
html_nodes("h3") %>%
html_text() %>%
.[1] %>%
str_sub(1, -20)
if (names == "") {
names <- NA
}
return(names)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.