wrap_in_html(): process message in bulk rather than line-by-line