Unsubscribe link needn't be sanitized

This commit is contained in:
Robin Ward 2015-12-11 10:06:07 -05:00
parent 02279c41cb
commit ccf5b1584d

View File

@ -61,7 +61,7 @@ module Email
return unless html_override = @opts[:html_override]
if @opts[:add_unsubscribe_link]
unsubscribe_link = PrettyText.cook(I18n.t('unsubscribe_link', template_args)).html_safe
unsubscribe_link = PrettyText.cook(I18n.t('unsubscribe_link', template_args), sanitize: false).html_safe
html_override.gsub!("%{unsubscribe_link}", unsubscribe_link)
else
html_override.gsub!("%{unsubscribe_link}", "")