As Sir SidKemp has mentioned, Dr Bowdler took out the naughty bits from Shakespeare.
We use the verb 'Bowdlerize' to mean removing offensive passages from works of literature. We have borrowed the word from Dr Thomas Bowdler, an Englishman born in 1754. He loved the plays of Shakespeare, but thought parts of them were rude and 'unfit to be read by a gentleman in the company of ladies'. For this reason he set about cutting chunks he considered unsuitable from the playwright's works. In fact, it was his sister who did the most drastic cutting; Thomas was often responsible for putting back some of what she had cut.