Stuart Wright
Well-known member
Hello folks,
I'm trying to build a string of HTML in a loop.
The string I want to build in each iteration of the loop is this html
I'm trying to use
to build a string of <li>s, but the double quote in the html needs escaping.
How can I do this please?
I'm trying to build a string of HTML in a loop.
The string I want to build in each iteration of the loop is this html
HTML:
<li>
<a href="{xen:link forums, $forum, '_params={$pageNavParams}', 'prefix_id={$prefix.prefix_id}'}">{xen:helper threadPrefix, $prefix, html, ' ({xen:if {$prefixCounts.{$prefix.prefix_id}}, {$prefixCounts.{$prefix.prefix_id}}, 0})'}</a>
</li>
Code:
<xen:set var="$prefixHTML" value="{$prefixHTML} the above code"
How can I do this please?