title: How to correctly display a list of entities containing string fields with HTML formatting
body: <p>I have a list of entities. They, in turn, contain String fields which can contain html formatting (they are filled from rich text areas), including embedded images. The list of entities should be displayed in a generated report as a table, showing the values in these fields.</p>
  
  <p>Sample entity code:</p>
  
  <pre><code>public class Entity {
      String htmlFormatted;
      String anotherHtmlFormatted;
      List&lt;String&gt; listOfHtmlFormattedStrings;
      // ...
  }
  </code></pre>
  
  <p>I load report template, add the list of entities to it, and process it:</p>
  
  <pre><code>IXDocReport report = ...
  // metadata
  metadata.addFieldAsTextStyling("entity.anotherHtmlFormatted", SyntaxKind.Html);
  
  List&lt;Entity&gt; entities = new ArrayList&lt;Entity&gt;();
  // add a list
  entities.add(...);
  context.put("entities", entities);
  
  OutputStream out = new FileOutputStream(new File("..."));
  report.process(context, out);
  </code></pre>
  
  <p>Template docx file contains <code>#foreach($entity in $entities)</code> directive around a table. In the table, cells are populated using e.g. <code>$entity.anotherHtmlFormatted</code>, and list fields are rendered within their own <em>foreach</em> within cells.</p>
  
  <p>I use <code>metadata.addFieldAsTextStyling("entity.htmlFormatted", SyntaxKind.Html)</code>, but, for example, embedded images in this are not displayed. Also, lists have some weird empty symbols in front bullets.</p>
  
  <p>What do I do to get correct display of the fields? And how to display list fields correctly?</p>