Robert Mankoff said this quote

The line between humor and bad taste is your audience, in which some people will find everything offensive, and some people will find nothing offensive, but the truth is that most humor originates in what would be called bad taste.