Improved meta function
diff --git a/system/helpers/html_helper.php b/system/helpers/html_helper.php
index e175c4c..ef5a84a 100644
--- a/system/helpers/html_helper.php
+++ b/system/helpers/html_helper.php
@@ -322,12 +322,32 @@
  */	

 if ( ! function_exists('meta'))

 {

-	function meta($meta = array(), $newline = "\n")

+	function meta($name = '', $content = '', $type = 'name', $newline = "\n")

 	{

-		$str = '';

-		foreach ($meta as $key => $val)

+		// Since we allow the data to be passes as a string, a simple array

+		// or a multidimensional one, we need to do a little prepping.

+		if ( ! is_array($name))

 		{

-			$str .= '<meta http-equiv="'.$key.'" content="'.$val.'" />'.$newline;

+			$name = array(array('name' => $name, 'content' => $content, 'type' => $type, 'newline' => $newline));

+		}

+		else

+		{

+			// Turn single array into multidimensional

+			if (isset($name['name']))

+			{

+				$name = array($name);

+			}

+		}

+	

+		$str = '';

+		foreach ($name as $meta)

+		{

+			$type 		= ( ! isset($meta['type']) OR $meta['type'] == 'name') ? 'name' : 'http-equiv';

+			$name 		= ( ! isset($meta['name'])) 	? '' 	: $meta['name'];

+			$content	= ( ! isset($meta['content']))	? '' 	: $meta['content'];

+			$newline	= ( ! isset($meta['newline']))	? "\n"	: $meta['newline'];

+			

+			$str .= '<meta '.$type.'="'.$name.'" content="'.$content.'" />'.$newline;

 		}

 

 		return $str;