How do you escape a quote in XML? I want to pass this string: Put an "f" on the end of floating literals. And this needs to go into a tag attribute: <explanation text="Put an "f" on the end of floating literals."/> Obviously, the quotes need to be escaped. I tried a backslash, but that doesn't work.