Skip to contents

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)

Arguments

names

a character (or character vector)

Value

a character vector of cleaned strings

Examples


c(
  "<b><font color= Cyan>Kevin OBrien (@kevinobrienff) </FONT></B>",
  "<em><font color= Purple> Other fun names</font></em>"
) %>% dp_clean_html()
#> [1] "Kevin OBrien (@kevinobrienff)" "Other fun names"