I'm trying to customize the markup of an email select field in Sprout Forms, however, when I customize the markup with Custom HTML, as specified in the documentation, it outputs the actual value
rather than purging it to hide them from spam bots. I just need to know what I should include in the options to purge these. Here is the code I've been using.
{% set recipient = form.getField('emailRecipient') %}
<select name="fields[{{ recipient.handle }}]">
{% for option in recipient.settings.options %}
<option value="{{ option.value }}" {% if option.value == value.value %}selected{% endif %}>{{ option.label }}</option>
{% endfor %}
</select>
Any help would be greatly appreciated!
Thanks.