parse HTML content in messages