Stop using appliances with frayed power cords. You may not realize it, but power cords have several layers. Visible damage at the outer layer of a power cable, whether that’s pinching, tearing, or frays, is probably a good indication of damage to the inner layers as well.
Do yourself a favor and stop using the appliance if this happens.