Encode potential HTML input, clean out output modal