Solar_Vt100::escape()

static public string Solar_Vt100::escape ( string $text )

Escapes ASCII control codes (0-31, 127) and %-signs.

Parameters

  • (string) $text: The text to escape.

Returns

  • (string) The escaped text.

Description

Escapes ASCII control codes (0-31, 127) and %-signs.

Note that this will catch newlines and carriage returns as well.



Local