Handle html format exception.