title: How to loop in <div> HERE <div/>
body: <p>I have created a loop outside the code and i decided later to put inside of a HTML/jquery Table but everytime I copy paste it doesnt work at all. Is there any posibility to put the foreach inside the ? <a href="https://i.stack.imgur.com/jLnh8.png" rel="nofollow noreferrer">Here is the Table</a> "in the "LOOP" should be the generated text through foreach"</p>
  
  <pre><code>$rows += @"
      &lt;div id="tabs"&gt;
        &lt;ul&gt;
          &lt;li&gt;&lt;a href="#tabs-1"&gt;Deutsch (DE)&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#tabs-2"&gt;Englisch (EN)&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
        &lt;div id="tabs-1"&gt;
        &lt;p&gt;LOOP 1&lt;/p&gt;
       &lt;/div&gt;
        &lt;div id="tabs-2"&gt;
          &lt;p&gt;LOOP 2&lt;/p&gt;
        &lt;/div&gt;
  
      &lt;/div&gt;
      "@
  </code></pre>
  
  <p>the loop</p>
  
  <pre><code>$tfsWis.Query("Select * from sth where [sample]  &lt;&gt; '' order by [Iteration Path] desc, Id desc") | Foreach-Object `
  {
      $backgroundColor = 'background-color:green; color:white;'
      $item = $_
      if($oldIteration -and $oldIteration -ne $item.IterationPath)
      {
          $rows += @"
                  &lt;/ul&gt; 
          &lt;/ul&gt; 
  "@ 
      }
      if($oldIteration -ne $item.IterationPath)
      {
          $rows += @"
          &lt;ul&gt;        
              &lt;li&gt;&lt;div&gt;$($item.Fields["it"].value) &lt;/div&gt; &lt;/li&gt;
                      &lt;ul&gt;
  
  "@ 
      }
      $rows += @"
                      &lt;li&gt;&lt;div&gt;$($item.Fields["ID"].value)&lt;/div&gt;&lt;/li&gt;
                          &lt;ul&gt; 
                              &lt;li&gt;
                                  &lt;div&gt;Title&lt;br/&gt;$($item.Fields["en"].value)&lt;/div&gt;
                              &lt;/li&gt;
                              &lt;li&gt; 
                                  &lt;div&gt;Description&lt;br/&gt;$($item.Fields["deen"].value)&lt;/div&gt;  
                              &lt;/li&gt; 
  
                              &lt;li&gt;
                                  &lt;div&gt;Titel&lt;br/&gt;$($item.Fields["dee"].value)&lt;/div&gt;
                              &lt;/li&gt; 
                              &lt;li&gt; 
                                  &lt;div&gt;Beschreibung&lt;br/&gt;$($item.Fields["es"].value)&lt;/div&gt; 
                              &lt;/li&gt; 
                          &lt;/ul&gt; 
  "@
      $oldIteration = $item.IterationPath
  }
  </code></pre>