io <- function(parent, type) {
nodes <- getNodeSet(parent, type)
formats <- sapply(nodes, xmlValue)
# Strip leading/trailing white space
gsub("^[[:space:]]+|[[:space:]]+$", "", formats)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.