R/StripFun.R

Defines functions StripFun

#' Strips out html tags
#' 
#' @param htmlString character vector of html strings.
#' @details Internal function to strip out html tags into pure text for later processing with exported functions of rcatfish
#' @return Character vector 
#' @author Samuel R. Borstein
#' @noRd

StripFun <- function(htmlString){
  read.html <- lapply(htmlString, xml2::read_html)
  stripped <- lapply(read.html, rvest::html_text)
  StrippedResults <- unlist(stripped)
  return(StrippedResults)
}

Try the rcatfish package in your browser

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

rcatfish documentation built on Feb. 3, 2026, 5:07 p.m.