R/read.cdir-internal.R

Defines functions remove_html

remove_html <- function(x) {
  x <- gsub("^<p>", "", x)
  x <- gsub("</p>$", "", x)
  x <- gsub("^Quote: ", "", x)
  x <- gsub("\"", '"', x)
  #
  x <- gsub("&gt;", ">", x)
  x <- gsub("&lt;", "<", x)
  x <- gsub("&nbsp;", " ", x)
  #
  x
}

Try the meta package in your browser

Any scripts or data that you put into this service are public.

meta documentation built on May 25, 2026, 9:07 a.m.