yupe\helpers\Html::render PHP Method

render() protected static method

protected static render ( $class, $text, boolean | true $strip = true ) : string
$class
$text
$strip boolean | true
return string
    protected static function render($class, $text, $strip = true)
    {
        $class = strip_tags($class);
        if ($strip) {
            $text = strip_tags($text);
        }
        return "<span class='label label-{$class}'>{$text}</span>";
    }