Writing Magic Quotes