public static function readSafe($message = null, bool $nl = false, array $opts = []): string
    {
        if ($message) {
            self::write($message, $nl);
        }

        $opts = \array_merge([
            'length' => 1024,
            'stream' => \STDIN,
            'allowTags' => null,
        ], $opts);

        return \trim(\fgetss($opts['stream'], $opts['length'], $opts['allowTags']));
    }
public static function readSafe($message = null, bool $nl = false, array $opts = []): string
    {
        if ($message) {
            self::write($message, $nl);
        }

        $opts = \array_merge([
            'length' => 1024,
            'stream' => \STDIN,
            'allowTags' => null,
        ], $opts);

        return \trim(\fgetss($opts['stream'], $opts['length'], $opts['allowTags']));
    }
public static function readSafe ( $ message = null , bool $ nl = false , array $ opts = [ ] ) : string { if ( $ message ) { self :: write ( $ message , $ nl ) ; } $ opts = \ array_merge ( [ 'length' => 1024 , 'stream' => \ STDIN , 'allowTags' => null , ] , $ opts ) ; return \ trim ( \ fgetss ( $ opts [ 'stream' ] , $ opts [ 'length' ] , $ opts [ 'allowTags' ] ) ) ; }
Gets line from file pointer and strip HTML tags

@param mixed $message
@param bool  $nl
@param array $opts
@return string
Gets line from file pointer and strip HTML tags