Two ways - dismantle and fit either a new cable or the original cable but slightly shortened to lose the damaged piece - OR - fit an in-line connector like this one...
http://www.partridges.uk.com/catalog/images/Duraplug_Lead_Connector.jpg
With the male plug piece connected to the trimmer side for safety
Peccavi, June 2010