Use these functions with the format_labels argument of make_labelled() to define how variable labels should be formatted before being applied to the data columns of redcap_data. These functions are helpful to create pretty variable labels from REDCap field labels.
fmt_strip_whitespace() removes extra white space inside and at the start and end of a string. It is a thin wrapper of stringr::str_trim() and stringr::str_squish().
fmt_strip_trailing_colon() removes a colon character at the end of a string.
fmt_strip_trailing_punct() removes punctuation at the end of a string.
fmt_strip_html() removes html tags from a string.
fmt_strip_field_embedding() removes text between curly braces {} which REDCap uses for special "field embedding" logic. Note that read_redcap()
removes html tags and field embedding logic from field labels in the metadata by default.