fix the function of replace html at Survey