fixText <-function(x){
x <- gsub("“|”|″", "\"", x)
x <- gsub("’|′", "'", x)
x <- gsub("−|–", "-", x)
x <- gsub("∼", "~", x)
x <- gsub("×", "x", x)
x <- gsub("‥", "..", x)
x <- gsub("ö", "o", x)
x <- gsub("NA; ", "", x) # section titles only
x <- gsub("\n", " ", x)
x <- gsub(" *", " ", x)
x <- gsub("^ *", "", x)
x <- gsub(" *$", "", x)
x
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.