How do you spare Muffet in Undertale?

Quick answer: Dodge her attacks until she is done, and do not attack her. Then you can spare her.
Show walkthrough
Her lair
Muffet runs a spider bake sale in Hotland. You can buy treats there with gold.
The fight
Dodge her attacks by moving between the purple lines. Do not attack her.
Spare her
Keep dodging until you can spare her. Then you can go on with the Hotland walkthrough.
