modifications to url_title()
diff --git a/system/helpers/url_helper.php b/system/helpers/url_helper.php
index acf8890..002090d 100644
--- a/system/helpers/url_helper.php
+++ b/system/helpers/url_helper.php
@@ -479,19 +479,20 @@
 		}

 		

 		$trans = array(

-						$search								=> $replace,

-						"\s+"								=> $replace,

-						"[^a-z0-9".$replace."]"				=> '',

-						$replace."+"						=> $replace,

-						$replace."$"						=> '',

-						"^".$replace						=> ''

-					   );

+						'&\#\d+?;'				=> '',

+						'&\S+?;'				=> '',

+						'\s+'					=> $replace,

+						'[^a-z0-9\-\._]'		=> '',

+						$replace.'+'			=> $replace,

+						$replace.'$'			=> $replace,

+						'^'.$replace			=> $replace

+					  );

 

-		$str = strip_tags(strtolower($str));

+		$str = strip_tags($str);

 	

 		foreach ($trans as $key => $val)

 		{

-			$str = preg_replace("#".$key."#", $val, $str);

+			$str = preg_replace("#".$key."#i", $val, $str);

 		}

 	

 		return trim(stripslashes($str));