Nothing
#' Prepare a label as part of a title text for `RMD` files
#'
#' @param s the label
#' @param html prepare the label for direct `HTML` output instead of `RMD`
#'
#' @return the escaped label
#' @export
#'
prep_title_escape <- function(s, html = FALSE) {
# r <- gsub("&", "&", s, fixed = TRUE)
# r <- gsub("^#+", "", r, perl = TRUE)
# r <- gsub("/", "/", r, fixed = TRUE)
# r <- gsub("@", "@", r, fixed = TRUE)
# r <- gsub("<", "<", r, fixed = TRUE)
# r <- gsub(">", ">", r, fixed = TRUE)
# r <- gsub("\"", "\", r, fixed = TRUE)
# r <- gsub("_", "_", r, fixed = TRUE)
# r <- gsub("~", "~", r, fixed = TRUE)
if (html) {
r <- lapply(s, htmltools::pre)
r <- vapply(s, as.character, FUN.VALUE = character(1))
} else {
r <- s
r <- gsub("`", "", r, fixed = TRUE)
r <- paste0("`", r, "`")
}
r
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.