added HTML truncation and other goodies