repaired processhtml