From 7ca5a2359acf7e4676518c7c950324afeac80a25 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 25 Jul 2011 08:37:01 -0700 Subject: [PATCH] Added HTML::span method. --- system/html.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/system/html.php b/system/html.php index f7c53282..e4da34ee 100644 --- a/system/html.php +++ b/system/html.php @@ -35,6 +35,18 @@ class HTML { return ''.PHP_EOL; } + /** + * Generate a HTML span. + * + * @param string $value + * @param array $attributes + * @return string + */ + public static function span($value, $attributes = array()) + { + return ''.static::entities($value).''; + } + /** * Generate a HTML link. *