clean() Function

Supports US English text only.

Function

clean( text )

Returns the specified text, minus any characters not considered printable. Printable characters are the 95 printable ASCII characters plus three special characters: BACKSPACE (0x08), TAB (0x09), and NEWLINE (0x0a).

See also: cleanwith(), strip()

Parameters

Keyword Type Description

text

Text

The text to be "cleaned" for printing purposes.

Returns

Text

Examples

clean("this     text    needs    to   be   cleaned") returns this text needs to be cleaned

Open in Github Built: Fri, Jun 09, 2023 (04:25:43 PM)

On This Page

FEEDBACK