title: Sweet Alert 2 with AJAX content
body: <p>I am trying to make a <a href="https://sweetalert.js.org" rel="nofollow noreferrer">Sweet Alert</a> dialog with an AJAX response as content but I am not sure how to use their fetch() function.</p>
  
  <p>According to their documentation I could use the option <code>content</code> to set an element.</p>
  
  <pre><code>swal({
      title: 'Test Dialog',
      icon: 'info',
      content: fetch('http://some.url')
    })
  </code></pre>
  
  <p>Where I should see the DOM content of that URL as the dialog content. Instead I get of course: nothing:</p>
  
  <p><a href="https://i.stack.imgur.com/4BBcl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4BBcl.png" alt="test dialog"></a></p>