×

Remove Non-Printable Characters

iOS 15 +

Notes

Removes non-printable (invisible) Unicode characters from the input text, excluding normal whitespace characters. This can be useful to clean up input text which might contain things like left-to-right embedding, control characters, etc.

Syntax

removeNonPrintableCharacters(text: <#String (Allows Variables)#>)

Example

removeNonPrintableCharacters(text: "T𝅸here ar e some h𝅸idde𝅸n cha𝅸rac ters in this tㅤext")