PHP Class LightnCandy\SafeString

Inheritance: extends Encoder
Exibir arquivo Open project: zordius/lightncandy Class Usage Examples

Public Properties

Property Type Description
$jsContext

Public Methods

Method Description
__construct ( string $str, boolean | string $escape = false ) Constructor
__toString ( )
escapeTemplate ( string $template ) : string Escape template
stripExtendedComments ( string $template ) : string Strip extended comments {{!-- .

Method Details

__construct() public method

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

__toString() public method

public __toString ( )

escapeTemplate() public static method

Escape template
public static escapeTemplate ( string $template ) : string
$template string handlebars template string
return string Escaped template

stripExtendedComments() public static method

... --}}
public static stripExtendedComments ( string $template ) : string
$template string handlebars template string
return string Stripped template

Property Details

$jsContext public_oe static_oe property

public static $jsContext