'Freemarker variable only getting last value instead of all

Im trying to save a some values into a variable.

Im iterating over a list and I want to save the object if it is a Description

              <#if item[prop].value?starts_with("Description:")>
                  <#assign description = item[prop].value>
              </#if>

Then I try to create a table for this Description Items.

  <#if description?length gt 0>
     <#list description as desc>
        <table class="itemtable" style="width: 100%; margin-top: 0px;">
           <tr>
              <td><strong>${desc?replace('&', '&amp;')?replace('\n', '<br/>')}</strong></td>
           </tr>
        </table>
     </#list>
  </#if>

The problem is that I'm only getting the last Description value instead of all the Descriptions.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source