#' Escape a JS String
#'
#' Escape a String to be sent to JavaScript
#' @param text The text to escape
#' @author Jeff Allen \email{jeff@@trestletech.com}
jsQuote <- function(text){
toReturn <- shQuote(text)
toReturn <- gsub('\n', '\\\\n', toReturn)
toReturn
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.