Gemini Community Support Site

This Gemini community support site can be used to find solutions to product issues. You can log in using Open Id, Google Profile and even Facebook. Feel free to ask a question or browse FAQs and documentation. Product tour videos are also available along with how-to videos demonstrating key Gemini capabilities.




Gemini 5: HTML tags are displayed in email notifications

admin
emails

When issues are updated in our system, emails are sent using a customized Alert Template, including the last comment and some other information of the issue. The Alert Template includes the following HTML code: <tr> <td style="color: #4c4c4c; border: 1px solid #f5f5f5;"><strong>Last comment:</strong></td> <td style="border: 1px solid #f5f5f5;">@(item.LastComment)</td> </tr>

For example, one issue holds the following comment:

Row 1. 

Row 2, text in bold

The information is fetched correctly, but the email is formatted incorrectly. The HTML tags are displayed in the email: Last comment: <p>Row 1.&nbsp;</p> <p>Row 2, text in <strong>bold</strong>.&nbsp;</p>

Can this be configured differently, or is the problem in our email server/client (GroupWise)?

Marcus Antonsson
· 50
Marcus Antonsson
Replies (2)
helpful
0
not helpful
ANSWER

Change it to use Html.raw: @Html.Raw(item.LastComment)


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

It works perfectly, thank you!


Marcus Antonsson
· 50
Marcus Antonsson