Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Removes control characters.

Component Version macOS Windows Linux Server iOS SDK
Text 5.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Text.RemoveControlCharacters"; Text )   More


Parameter Description Example
Text The text to process. "Hello World"


Returns text or error.


Removes control characters.
Leaves tab, return and new line characters in the text, but removes other characters with code point <32.
See also Text.ReplaceNewline for replacing line endings.

Rewritten for version 12.1 to preserve text styles.


Remove control characters test:

Length(MBS( "Text.RemoveControlCharacters"; "Hello" & Char(3) & "World" ))

Example result: 10

See also

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 22nd April 2015, last changed 1st February 2022

Text.RemoveAccentsCaseInsensitive - Text.RemoveNewLine