Gustave Flaubert said this quote

The morality of art consists, for everyone, in the side that flatters its own interests. People do not like literature.