I'd say definitely the latter.. a) The punctuation is not part of the quote, so it shouldn't be inside the quotation marks. b) The punctuation is separating the quote from the rest of the sentence, hence it's appearance outside.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.