alphagov/whitehall — comment on commit 99211349fefaaefb96534e9bc25d7ef4c1a41dcf
File:  line 0
By threedaymonk:

You can use [Govspeak::Document#to_text](https://github.com/alphagov/govspeak/blob/master/lib/govspeak.rb#L26) to do this more simply; it'll also handle encoded entities properly.