Remove Control Codes
#Firmware/v210
txt = stripcodes(txt, keep)
Returns a string where all controls, except those listed in keep have been stripped.
keep
e.g.
local s = stripcodes(s, '\r\n\t') -- remove everything except CR, LF, TAB