Previous Page
_errln()

Solar_Cli_RunTests
_escape()

Next Page
_exception()

_escape()

protected string _escape ( string $text )

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

Inherited from Solar_Controller_Command.

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.