Some sweeping syntax changes for consistency:

(! foo) changed to ( ! foo)
|| changed to OR
changed newline standardization code in various places from preg_replace to str_replace
diff --git a/system/helpers/html_helper.php b/system/helpers/html_helper.php
index 592c33a..7a61055 100644
--- a/system/helpers/html_helper.php
+++ b/system/helpers/html_helper.php
@@ -1,4 +1,4 @@
-<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');

+<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

 /**

  * CodeIgniter

  *

@@ -38,7 +38,7 @@
  * @param	integer

  * @return	string

  */	

-if (! function_exists('heading'))

+if ( ! function_exists('heading'))

 {

 	function heading($data = '', $h = '1')

 	{

@@ -58,7 +58,7 @@
  * @param	mixed

  * @return	string

  */	

-if (! function_exists('ul'))

+if ( ! function_exists('ul'))

 {

 	function ul($list, $attributes = '')

 	{

@@ -78,7 +78,7 @@
  * @param	mixed

  * @return	string

  */	

-if (! function_exists('ol'))

+if ( ! function_exists('ol'))

 {

 	function ol($list, $attributes = '')

 	{

@@ -100,12 +100,12 @@
  * @param	intiger		

  * @return	string

  */	

-if (! function_exists('_list'))

+if ( ! function_exists('_list'))

 {

 	function _list($type = 'ul', $list, $attributes = '', $depth = 0)

 	{

 		// If an array wasn't submitted there's nothing to do...

-		if (! is_array($list))

+		if ( ! is_array($list))

 		{

 			return $list;

 		}

@@ -138,7 +138,7 @@
 			$out .= str_repeat(" ", $depth + 2);

 			$out .= "<li>";

 		

-			if (! is_array($val))

+			if ( ! is_array($val))

 			{

 				$out .= $val;

 			}

@@ -171,7 +171,7 @@
  * @param	integer

  * @return	string

  */	

-if (! function_exists('br'))

+if ( ! function_exists('br'))

 {

 	function br($num = 1)

 	{

@@ -190,11 +190,11 @@
  * @param	mixed

  * @return	string

  */	

-if (! function_exists('img'))

+if ( ! function_exists('img'))

 {

 	function img($src = '', $index_page = FALSE)

 	{

-		if (! is_array($src) )

+		if ( ! is_array($src) )

 		{

 			$src = array('src' => $src);

 		}

@@ -245,7 +245,7 @@
  * @param	boolean	should index_page be added to the css path 

  * @return	string

  */	

-if (! function_exists('link_tag'))

+if ( ! function_exists('link_tag'))

 {

 	function link_tag($href = '', $rel = 'stylesheet', $type = 'text/css', $title = '', $media = '', $index_page = FALSE)

 	{

@@ -320,7 +320,7 @@
  * @param	array

  * @return	string

  */	

-if (! function_exists('meta'))

+if ( ! function_exists('meta'))

 {

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

 	{

@@ -343,7 +343,7 @@
  * @param	integer

  * @return	string

  */	

-if (! function_exists('nbs'))

+if ( ! function_exists('nbs'))

 {

 	function nbs($num = 1)

 	{

@@ -351,6 +351,6 @@
 	}

 }

 

-
-/* End of file html_helper.php */
+

+/* End of file html_helper.php */

 /* Location: ./system/helpers/html_helper.php */
\ No newline at end of file