"All that glitters" or "Not all that glitters"?
These versions are fungible amongst those who are familiar with the phrase, and its intended meaning. For a large number of people, merely saying "glitters; not gold" will invoke the phrase as well, albeit it slightly indirectly.
People who are culturally fluent in a language can pick out intent, as well as literal meanings.