yf_tpl_raw class

Value holder that tpl()->AUTO_ESCAPE prints without escaping; created by tpl()->raw($html).

Fileplugins/tpl/classes/tpl/yf_tpl_raw.class.php
Use_class('tpl_raw', 'classes/tpl/')

Public properties

A site sets them in its config with $PROJECT_CONF['tpl_raw']['NAME'] = ...;

PropertyDefaultDescription
$html ''

Public methods 3

render

public function render()
    public function render()
    {
        return $this->html;
    }

Methods starting with _ hooks and helpers; not routable as page actions

__construct

public function __construct($html = '')
    public function __construct($html = '')
    {
        $this->html = (string) $html;
    }

__toString

public function __toString(): string
    public function __toString() : string
    {
        return $this->html;
    }