I need to replace <slot> slot_name </slot>
with a <?php !include_slot('slot_name')?>
in the text that I read from file
<table class="layout-table" id="layout1">
<tr>
<td class="slot" id="slot1" colspan="2">
<slot>
slot_name
</slot>
</td>
</tr>
<tr>
<td class="slot" id="slot2" rowspan="2">
<slot>
slot_name
</slot>
</td>
<td class="slot" id="slot3">
<slot>
slot_name
</slot>
</td>
</tr>
</table>
could anybody give me some directions as I had not really worked with this kind of traversing before. The problem is to iterate through the text and at the same time change the block with respect to the "slot_name"