alphagov/whitehall — pull request #165 by h-lame (2013-01-23 10:27:54+00:00)
Title: Better body summarisation

Remove attachment references `!@n` or `[InlineAttachment:n]` from govspeak before we turn it into html, also replace html entities with characters before we truncate.

Appreciate that as a bug fix this could probably go on master, but I'd like a review to make sure there's not some other thing I've missed as each time we run a migration like this it probably gets harder to detect the broken data.