bowdlerize

/ˈbaʊd.ləˌɹaɪz/verb
University
1

To remove or alter those parts of a text considered offensive, vulgar, or otherwise unseemly.