I just found out about
bowdlerize
To remove or alter those parts of a text considered offensive, vulgar, or otherwise unseemly.
From Thomas Bowdler, who in 1818 published a censored version of Shakespeare, expurgating "those words and expressions... which cannot with propriety be read aloud in a family."