
 Paul Bakulich - 2011-03-11 03:39:07 - 
In reply to message 1 from Paul Bakulich 
I put together this new function:
I called it in function readPosts()
with: $description = $this->convertAmpersand($description);
	        function convertAmpersand($description) {
                       $arr = explode(' ', $description);
			echo count($arr);
			foreach ($arr as $word) {
				$wArr = str_split($word);
                                foreach ($wArr as $char) {
                                        if ($char === "&") {
                                            echo "&";
                                        }
                                        else {
                                        echo $char;
				        }                               
                        }
                        echo ' ';
                    }
                }
Seems to work well - maybe it might be done better by using a htmlentities / something to convert each char to HTML.
Paul