Oscar Wilde said this quote

...art had no moral responsibility. Art, he argued, should strive only to be a beautiful object entirely separate from its creator.