#' Splits a string by the pipe, unlists, and trims whitespace on both sides
#' @import stringr
#' @export
strsplit_trim_pipe <-
function(string) {
stringr::str_trim(unlist(strsplit(string, "|", fixed = TRUE)), "both")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.