Replacing a damaged plug is easy, but for safety you have to follow proper wiring rules, especially when wiring a polarized plug.
Follow the rules of polarity for a safe fix.
How to Make a Corded Lamp Look Hardwired - Honeybear Lane
How to Fix a Lamp Cord (DIY)
12 Ft White Lamp Cord, Vinyl Covered Replacement Electrical Wire
Royal Designs DIY Lamp Making Kit – Make, Refurbish, and Repair
How to Fix a Lamp Cord (DIY)
Help me change this lamp :) : r/DIY
Generic Creative Hobbies Make a Lamp
Royal Designs, Inc. Lamp Cord, Molded 2-prong Plug, On/off Switch
How to Make a Lamp Shade Ring Fit — Mid Modern Mama
I Like That Lamp 8 Ft Silver Lamp Cord with Switch
3 Ways to Wire a Lamp - wikiHow
Lamp Cord with Switch Plug Black White Extension Cords 1.8M 3.6M
Lamp Parts and Repair Lamp Doctor: Floor Lamp Cord Replacement
How to shorten a lamp cord – House Mix
Lamp Parts and Repair Lamp Doctor: Simple Cord Replacement on