characterOnlyHandler <- function() {
  txt <- NULL
  text <- function(val,...) {
    txt <<- c(txt, val)
  }
  getText <- function() { txt }
  return(list(text=text, getText=getText))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.