R/removeSpecChar.R

Defines functions removeSpecChar

Documented in removeSpecChar

## remove/fix chars  for pmcMetadata


removeSpecChar <- function(txt){  
  txt <- gsub("&", "&amp;", txt)   ## check for &lt; in file?
  txt <- gsub("&amp;lt;", "&lt;", txt) 
  txt <- gsub("&amp;gt;", "&gt;", txt) 

  txt <- gsub("<", "&lt;", txt)
  txt
}
cstubben/pmcXML documentation built on May 14, 2019, 12:25 p.m.