have you checked out, what is in the database itself?
Is the text compressed there, too?
If yes: something - with the migration (if there was one) - might have gone
wrong. It means, that the damage is done and it can only be repaired by
If no: Somewhere between getting data and displaying data there must be a
mistake, e. g. a misplaced preg_replace(),
Hope this helps,