PHP Class LightnCandy\SafeString

Inheritance: extends Encoder
Afficher le fichier Open project: zordius/lightncandy Class Usage Examples

Méthodes publiques

Свойство Type Description
$jsContext

Méthodes publiques

Méthode 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 méthode

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 méthode

public __toString ( )

escapeTemplate() public static méthode

Escape template
public static escapeTemplate ( string $template ) : string
$template string handlebars template string
Résultat string Escaped template

stripExtendedComments() public static méthode

... --}}
public static stripExtendedComments ( string $template ) : string
$template string handlebars template string
Résultat string Stripped template

Property Details

$jsContext public_oe static_oe property

public static $jsContext