title: String to XML - Javascript
body: <p>I want to add the attribute <code>trust</code> to one XML. My problem is that currently I have the <code>value</code> as a <code>string</code>, so I can not use the following code:</p>
  
  <pre><code>trusted (escaped) {
    escape.filter('to_trusted', ['$sce', function($sce) {
      return function(text) {
        return $sce.trustAsHtml(text);
      }
    }]);
  } 
  </code></pre>
  
  <p>Is it possible to convert a <code>string</code> into a <code>XML</code>? I would like to convert <code>escaped</code>.</p>