AndyB
Well-known member
I have the following code in a template:
Currently the thread title (as a link) would show something like this:
"This is an example thread title"
what I would like to do is bold two words like this:
"This is an example thread title"
How can I accomplish this? The words to be bolded would be in the variables $searchWord1 and $searchWord2.
Thank you.
Code:
<xen:foreach loop="$threads" key="$index" value="$thread">
<tr class="dataRow">
<td><a href="{xen:link threads, $thread}" title="{$thread.nodetitle}" target="_blank">{$thread.nodetitle}</a></td>
<td><a href="{xen:link threads, $thread}" title="{$thread.title}" target="_blank">{$thread.title}</a></td>
</tr>
</xen:foreach>
Currently the thread title (as a link) would show something like this:
"This is an example thread title"
what I would like to do is bold two words like this:
"This is an example thread title"
How can I accomplish this? The words to be bolded would be in the variables $searchWord1 and $searchWord2.
Thank you.
Last edited: