Who wrote ‘The only way to get rid of temptation is to yield to it’?

Question: Who wrote ‘The only way to get rid of temptation is to yield to it’?

Choices:

Edgar Allan Poe
Oscar Wilde
F. Scott Fitzgerald
James Joyce

Correct answer:

Oscar Wilde