Html escaping, message types, and test.