I have a .html file with a content like that:
<ul class="myclass">
<li>PLACEHOLDER</li>
</ul>
I also have an ArrayList like this:
["value 1", "value 2", "value 3"]
Now I want to create a new html file with li-entries for all of my elements in this list. So I expect this as a result:
<ul class="myclass">
<li>value 1</li>
<li>value 2</li>
<li>value 3</li>
</ul>
I could first loop over my List and create a String like "<li>value 1</li><li>value 2</li><li>value 3</li>" and do a replace on "<li>PLACEHOLDER</li>" - but I hope there is better solution.