Learn R Programming

ffscrapr (version 1.4.8)

dp_clean_html: Remove HTML from string

Description

Applies some regex to clean html tags from strings. This is useful for platforms such as MFL that interpret HTML in their franchise name fields.

Usage

dp_clean_html(names)

Value

a character vector of cleaned strings

Arguments

names

a character (or character vector)

Examples

Run this code

c(
  "Kevin OBrien (@kevinobrienff) ",
  " Other fun names"
) %>% dp_clean_html()

Run the code above in your browser using DataLab