 define a custom <code>options.deserialize</code> function:</p>
<pre><code class=language-javascript>m.request({
    method: &quot;GET&quot;,
    url: &quot;/files/icon.svg&quot;,
    deserialize: function(value) {return value}
})
.then(function(svg) {
    m.render(document.body, m.trust(svg))
})</code></pre>
<p>In the example above, the request retrieves an SVG file, does nothing to parse it (because <code>deserialize</code> merely returns the value as-is), and then renders the SVG string as trusted HTML.<