powered by
These functions are utilities to clear undesired characters from REDCap output.
stripHTMLTags( x, tags = c("p", "br", "div", "span", "b", "font", "sup", "sub"), ignore.case = TRUE )stripUnicode(x)
stripUnicode(x)
stripHTMLTags returns a character vector.
stripHTMLTags
character
stripUnicode returns a character vector.
stripUnicode
character, vector of content to be cleaned.
character, vector of HTML tags to remove from x
x
logical(1), should cases be ignored when matching patterns? Defaults to TRUE.
logical(1)
TRUE
stripHTMLTags("Text in a paragraph tag with bold formatting ") stripUnicode("\U00B5 = 0")
Run the code above in your browser using DataLab