LightnCandy\SafeString::__construct PHP Метод

__construct() публичный Метод

Constructor
public __construct ( string $str, boolean | string $escape = false )
$str string input string
$escape boolean | string false to not escape, true to escape, 'encq' to escape as handlebars.js
    public function __construct($str, $escape = false)
    {
        $this->string = $escape ? $escape === 'encq' ? static::encq(static::$jsContext, $str) : static::enc(static::$jsContext, $str) : $str;
    }