We already have 'cutouts' in the escape function to not escape assigned html.
It isn't catching the hierarchical select elements - so I have marked a bunch
to not be escaped. I could have handled in 'escape' but I think tpl handling
is actually correct - the cutouts in the escape function was to get it to
a more manageable level
{if $wizard.currentStepName == 'Preview'}
{$mapper[$i]}
{else}
- {$form.mapper[$i].html}
+ {$form.mapper[$i].html|smarty:nodefaults}
{/if}
</td>
{*/if*}
{/if}
{else}
- {$form.mapper[$i].html}
+ {$form.mapper[$i].html|smarty:nodefaults}
{/if}
</td>
<dl>
{section name=count start=1 loop=`$maxMapper`}
{assign var='i' value=$smarty.section.count.index}
- <dt>{$form.mapper[$i].label}</dt><dd>{$form.mapper[$i].html}<span class="tundra" id="id_map_mapper[{$i}]_1"><span id="id_mapper[{$i}]_1"></span></span><span class="tundra" id="id_map_mapper[{$i}]_2"><span id="id_mapper[{$i}]_2"></span></span><span class="tundra" id="id_map_mapper[{$i}]_3"><span id="id_mapper[{$i}]_3"></span></span></dd>
+ <dt>{$form.mapper[$i].label}</dt><dd>{$form.mapper[$i].html|smarty:nodefaults}<span class="tundra" id="id_map_mapper[{$i}]_1"><span id="id_mapper[{$i}]_1"></span></span><span class="tundra" id="id_map_mapper[{$i}]_2"><span id="id_mapper[{$i}]_2"></span></span><span class="tundra" id="id_map_mapper[{$i}]_3"><span id="id_mapper[{$i}]_3"></span></span></dd>
{literal}
<script type="text/javascript">
{$mapper[$i]}
{/if}
{else}
- {$form.mapper[$i].html}
+ {$form.mapper[$i].html|smarty:nodefaults}
{/if}
</td>
</tr>
<tr>
<td class="label">{$form.extends.label}</td>
- <td>{$form.extends.html} {help id="id-extends"}</td>
+ <td>{$form.extends.html|smarty:nodefaults} {help id="id-extends"}</td>
</tr>
<tr>
<td class="label">{$form.weight.label}</td>
{if $wizard.currentStepName == 'Preview'}
{$mapper[$i]}
{else}
- {$form.mapper[$i].html}
+ {$form.mapper[$i].html|smarty:nodefaults}
{/if}
</td>
{if $wizard.currentStepName == 'Preview'}
{$mapper[$i]}
{else}
- {$form.mapper[$i].html}
+ {$form.mapper[$i].html|smarty:nodefaults}
{/if}
</td>
<table class="form-layout-compressed">
<tr class="crm-uf-field-form-block-field_name">
<td class="label">{$form.field_name.label} {help id='field_name_0'}</td>
- <td>{$form.field_name.html}<br />
+ <td>{$form.field_name.html|smarty:nodefaults}<br />
<span class="description"> {ts}Select the type of CiviCRM record and the field you want to include in this Profile.{/ts}</span></td>
</tr>
<tr class="crm-uf-field-form-block-label">