When you use in a sentence and you going to quote somethig someone said?

This is how you quote within a quote - like you would when writing dialogue:
"I know! She actually said, 'You're stupid,' and left!" Zoe told me angrily.