How to escape xml content in a raw string?
===

I am getting a string of 'xml' that contains some content that is unescaped. Here is a trivial example:

    <link text="This is some text with "potentially" some quoted text in it." linktype="external" anchor="" target="" />

The problem I have is when you try to convert the above as a string using `XmlDocument.LoadXml()`, `LoadXml()` throws an exception because of the lack of escaping on the inner quotes for the content held by attribute 'text'. Is there a relatively painless way to escape the content specifically? Or am I just going to have to parse it/escape it/rebuild it myself?