repair the resulthtml