Charging cables usually get damaged and the rubber covering gets broken, exposing the wires inside which are prone to further damage. Here’s a simple DIY trick that can be used to protect the cables from getting broken or in case of them breaking; it will protect them from further damage.
Step 1:
Most of the ballpoints with the click and write option have a spring inside of them. Take out that spring from an old pen that is out of ink.
Step 2:
Widen and attach it to the front end of the cable.
Step 3:
Twist it around the cable and firmly attach it. This ensures that the cable remains straight and it prevents the wire from breaking further.