This is a simple way of escaping special characters inside of strings that you might want to insert into XML. I have used other techniques which require more coding so keep this handy!
You will use the following method: SecurityElement.Escape(string text).
see MSDN documentation