R/remove_html.R

Defines functions remove_html

Documented in remove_html

#' Strip HTML from text
#'
#' Remove HTML Tags from a string
#'
#' Remove all the HTML tags from a string input
#'
#' @param string A string to clean
#'
#' @return A cleaned \code{string}
#'
#' @import checkmate
#' @export
#'
#'
#' @examples
#' \dontrun{
#' Add examples
#' }

remove_html <- function(string) {

  checkmate::assert_character(string)
  

  return(gsub("<.*?>", "", string))

}
MarkGoble/mishMashr documentation built on Oct. 12, 2020, 8:24 p.m.