Lukas W.
Well-known member
Trying to make HTML in the switch overlay replacement string working. Any way to get this done? Current markup is:
But that inserts unrendered/escaped HTML:
HTML:
<a href="{{ link('forums/watch', $node.Data) }}"
data-xf-click="switch-overlay"
data-sk-watch="<i class='fa fa-eye-slash'></i>"
data-sk-unwatch="<i class='fa fa-eye'></i>">
<xf:if is="{$node.Data.Watch.{$xf.visitor.user_id}}">
<i class="fa fa-eye-slash"></i>
<xf:else />
<i class="fa fa-eye"></i>
</xf:if>
</a>
But that inserts unrendered/escaped HTML: