Rebuild html format