In the US, comedians often have two routines; one they can do in clubs that contains a lot of swearing and sexual references, and one they can do on TV.
Some of the older comedians I've liked whose routine were generally tame include the Smothers Brothers, Bill Cosby (at times), and Bob Newhart.