I'm not really sure what my problem is. the code is similar to as follows
(please note several lines were removed for this post (hence the "..."s)
When I call the function though, this is outputted for the $description:
in other words, It's not working!
Is there something I'm missing?

(please note several lines were removed for this post (hence the "..."s)
Code:
$item['DESCRIPTION'] = 'More Newandnbsp;Photos fromandnbsp;New';
function addItemToDB($item){
...
$description = $item['DESCRIPTION'];
$description = str_replace('andnbsp;', ' ', $description);
$description = mysql_escape_string(preg_replace('/<[^>]*>/', '', $description)); //parse out the html tags
...
}
When I call the function though, this is outputted for the $description:
More Newandnbsp;Photos fromandnbsp;New
in other words, It's not working!
Is there something I'm missing?
