I need something to replace <li>
with count index like 1,2,3 etc in Freemarker.
Here is the sample code:
<li>some text in list item one</li>
<li>some text in list item two</li>
<li>some text in list item three</li>
Expected result needs to be like below code -
1 some text in list item one
2 some text in list item two
3 some text in list item three
I've tried replace function but it will only replace all <li>
with single value.
${content?replace('<li>','-')}