MDL-52126 forum: Correct over-escaping of html-based emails

This commit is contained in:
Eloy Lafuente (stronk7) 2015-11-15 10:33:19 +01:00
parent f98345b976
commit 593aaa5366
2 changed files with 6 additions and 6 deletions

View File

@ -81,14 +81,14 @@
</head>
<body id="email">
<div class="navbar">
<a target="_blank" href="{{{ courselink }}}">{{ coursename }}</a>
<a target="_blank" href="{{{ courselink }}}">{{{ coursename }}}</a>
&raquo;
<a target="_blank" href="{{{ forumindexlink }}}">{{# str }} forums, forum {{/ str }}</a>
&raquo;
<a target="_blank" href="{{{ forumviewlink }}}">{{ forumname }}</a>
<a target="_blank" href="{{{ forumviewlink }}}">{{{ forumname }}}</a>
{{# showdiscussionname }}
&raquo;
<a target="_blank" href="{{{ discussionlink }}}">{{ discussionname }}</a>
<a target="_blank" href="{{{ discussionlink }}}">{{{ discussionname }}}</a>
{{/ showdiscussionname }}
</div>
@ -99,7 +99,7 @@
</td>
<td class="topic {{# firstpost }}starter{{/ firstpost }}">
<div class="subject">
{{ subject }}
{{{ subject }}}
</div>
<div class="author">
{{# str }} bynameondate, forum, { "name": "<a target='_blank' href='{{{ authorlink }}}'>{{ authorfullname }}</a>", "date": "{{ postdate }}" } {{/ str }}
@ -118,7 +118,7 @@
<td class="content">
{{# attachments }}
<div class="attachments">
{{ attachments }}
{{{ attachments }}}
</div>
{{/ attachments }}
{{{ message }}}

View File

@ -42,7 +42,7 @@
}
}}
<div>
<a target="_blank" href="{{{ permalink }}}">{{ subject }}</a>
<a target="_blank" href="{{{ permalink }}}">{{{ subject }}}</a>
{{# str }} bynameondate, forum, {
"name": "<a target=\"_blank\" href=\"{{{ authorlink }}}\">{{ authorfullname }}</a>",
"date": "{{ postdate }}"