token <- function(x) {
UseMethod("token")
}
token.xml_node <- function(x) {
token(xml2::xml_name(x))
}
token.character <- function(x) {
gsub("[^a-z]", "_", tolower(x))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.