Wasnt there another version of the story where Jesus brings up something along the lines of "what is unholy is what comes out of the mouth not what goes in"? Sorry I know I butchered that line.
I don't think you butchered it at all, in some translations, you may have it almost word for word. Yes, there is a lot of similarity. Christ again points out the spirit of God's law.
Mark 7
That Which Defiles
1 The Pharisees and some of the teachers of the law who had come from Jerusalem gathered around Jesus 2 and saw some of his disciples eating food with hands that were defiled, that is, unwashed. 3 (The Pharisees and all the Jews do not eat unless they give their hands a ceremonial washing, holding to the tradition of the elders. 4 When they come from the marketplace they do not eat unless they wash. And they observe many other traditions, such as the washing of cups, pitchers and kettles.[
a])
5 So the Pharisees and teachers of the law asked Jesus, Why dont your disciples live according to the tradition of the elders instead of eating their food with defiled hands?
6 He replied, Isaiah was right when he prophesied about you hypocrites; as it is written:
These people honor me with their lips,
but their hearts are far from me.
7 They worship me in vain;
their teachings are merely human rules.[
b]
8 You have let go of the commands of God and are holding on to human traditions.
9 And he continued, You have a fine way of setting aside the commands of God in order to observe[
c] your own traditions! 10 For Moses said, Honor your father and mother,[
d] and, Anyone who curses their father or mother is to be put to death.[
e] 11 But you say that if anyone declares that what might have been used to help their father or mother is Corban (that is, devoted to God) 12 then you no longer let them do anything for their father or mother. 13 Thus you nullify the word of God by your tradition that you have handed down. And you do many things like that.
14 Again Jesus called the crowd to him and said, Listen to me, everyone, and understand this. 15
Nothing outside a person can defile them by going into them. Rather, it is what comes out of a person that defiles them. [16] [
f]
17 After he had left the crowd and entered the house, his disciples asked him about this parable. 18 Are you so dull? he asked. Dont you see that nothing that enters a person from the outside can defile them? 19 For it doesnt go into their heart but into their stomach, and then out of the body. (In saying this, Jesus declared all foods clean.) 20 He went on: What comes out of a person is what defiles them. 21 For it is from within, out of a persons heart, that evil thoughts comesexual immorality, theft, murder, 22 adultery, greed, malice, deceit, lewdness, envy, slander, arrogance and folly. 23 All these evils come from inside and defile a person.