Blame view

Hood/Helper/View/ViewAbstract.php 415 Bytes
ziy authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
<?php
/**
 * Created by PhpStorm.
 * User: Zip
 * Date: 14/12/16
 * Time: 下午12:57
 */

namespace Hood\Helper\View;


class ViewAbstract
{
    protected $_item = array();

    protected $enc = 'UTF-8';

    protected $conditional = '';

    protected $_target_conditional = array();

    protected function _escape($string)
    {
        return htmlspecialchars((string)$string, ENT_COMPAT, $this->enc);
    }
}