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

Text.RemoveControlCharacters

Removes control characters.

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

Parameters

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

Result

Returns text or error.

Description

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.

Examples

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