Commit 7ca5a235 by Taylor Otwell

Added HTML::span method.

parent 79482dec
...@@ -36,6 +36,18 @@ class HTML { ...@@ -36,6 +36,18 @@ class HTML {
} }
/** /**
* Generate a HTML span.
*
* @param string $value
* @param array $attributes
* @return string
*/
public static function span($value, $attributes = array())
{
return '<span'.static::attributes($attributes).'>'.static::entities($value).'</span>';
}
/**
* Generate a HTML link. * Generate a HTML link.
* *
* @param string $url * @param string $url
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment