add html escape replace variable option

This commit is contained in:
Pete Matsyburka
2024-03-12 23:47:58 +02:00
parent 704fbc2393
commit 849289287e
5 changed files with 30 additions and 20 deletions
@@ -1,5 +1,5 @@
<% if @email_config %>
<%= render 'custom_content', content: ReplaceEmailVariables.call(@email_config.value['body'], submitter: @submitter) %>
<%= render 'custom_content', content: @email_config.value['body'], submitter: @submitter %>
<% else %>
<p>Hi there,</p>
<p>"<%= @submitter.submission.template.name %>" form has been completed by <%= @submitter.submission.submitters.order(:completed_at).map { |e| e.name || e.email || e.phone }.join(', ') %>.</p>