Fix HTML escaping and trunctation http://virtualmin.com/node/27122