Takes a character vector and returns it with matches of pattern wrapped in html tags used for highlighting
Source:R/cass_highlight.R
cass_highlight.Rd
Takes a character vector and returns it with matches of pattern wrapped in html tags used for highlighting
Examples
cass_highlight(
string = c(
"The R Foundation for Statistical Computing",
"R is free software and comes with ABSOLUTELY NO WARRANTY"
),
pattern = "foundation|software|warranty"
)
#> [1] "The R <mark>Foundation</mark> for Statistical Computing"
#> [2] "R is free <mark>software</mark> and comes with ABSOLUTELY NO <mark>WARRANTY</mark>"