Make token hash html compatible