I just repaired my Ipad 2 frayed cord. I cut some shrink tubing I had laying around. I cut 1/2" shrink tubing length wise, and glued the ends together with Super Glue. Then shrink the tubing with heat.
I use Snow white Sugru molded against the case and around the cable for about an inch. At a DevOps conference I got a freebie package in Red, later I bought a package of 6 Snow White which looks better. Keep your spares in the fridge as they dry up even in the package or give them away to friends and tell them not to store it beyond the "use by date".