LightnCandy\Encoder::encq PHP Method

encq() public static method

LightnCandy runtime method for {{var}} , and deal with single quote to same as handlebars.js .
public static encq ( array\arraystring | integer> $cx, arraystring | integer> | integer | null $var ) : string
$cx array\arraystring | integer>
$var arraystring | integer> | integer | null
return string The htmlencoded value of the specified variable
    public static function encq($cx, $var)
    {
        return str_replace(array('=', '`', '''), array('=', '`', '''), htmlentities(static::raw($cx, $var), ENT_QUOTES, 'UTF-8'));
    }