Wilde brought all of his troubles on himself. Not only was he queer, he reveled in it, wallowed in it, flashed it at cocktail parties from behind his greatcoat. Then he has the unmitigated gall to suggest that "society" is somehow wrong for being offended.
A brilliant man, perhaps, although I tend to agree that he was more gadfly than eagle. However, his tragic devotion to iconoclasm does give rise to some apothegmatic ideals that are worth considering.
Given that "offending" society meant being thrown in jail for two years of hard labor, he could have done a lot more than suggest.