G.k. Chesterton said this quote

it will be generally found that the popular joke is not true to the letter, but is true to the spirit. The joke is generally in the oddest way the truth and yet not the fact.