RobertFoster wrote: Generally ampersands are are written in text like & this - with a space before and after, aren't they? Why not try: str_replace(" & ", " & ", $row->text); Just a thought...though I'm sure someone else will come up with a better solution