Skip to content
This repository has been archived by the owner on Feb 6, 2022. It is now read-only.

Commit

Permalink
implemented a temporary workaround for #17
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Jul 19, 2012
1 parent e1d413c commit 65e6079
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Resources/views/Collector/swiftmailer.html.twig
Expand Up @@ -46,7 +46,13 @@
{% endfor %}

<p>
<pre>{{ message.body|e('html', message.charset)|convert_encoding('UTF-8', message.charset) }}</pre>
<pre>
{%- if message.charset %}
{{- message.body|e('html', message.charset)|convert_encoding('UTF-8', message.charset) }}

This comment has been minimized.

Copy link
@lmammino

lmammino Oct 22, 2012

Why escaping the data?
If i'd like to send an html email I can't use the profiler to have a real preview on how the message HTML code has been built (each tag is escaped and square brackets are converted to entitites).
Furthermore using the <pre> tag should avoid tags to be rendered as html (if not outputting a closing </pre> tag, obviously) ...

{%- else %}
{{- message.body|e('html') }}
{%- endif -%}
</pre>
</p>
{% endfor %}
{% endif %}
Expand Down

0 comments on commit 65e6079

Please sign in to comment.