Custom HTML formatter