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>"; }