title: How print a loop inside of sweet alert window
body: <p>I want to loop an array and show the result using sweet alert, I am new in this so I try the code below, but show me some like [object],[object]</p>
  
  <pre><code>swal({
    content:{
      element: "ul",
      attributes: {
        innerHTML:$.each(json.DATA.ARYPUB, function (key, img) {
                        "&lt;li&gt;&lt;img src='"+img.PATH+"'&gt;&lt;/li&gt;"
         })
      }
    }
  })
  </code></pre>
  
  <p>Can someone help me, please</p>