I am trying to add some text after @Html.DisplayFor() helper in ASP.net MVC 5 view, but can't get it to work.
My code:
@foreach (var item in Model.Changes)
{
<tr>
<td>
@Html.DisplayFor(modelItem => item.Name)
</td>
<td>
@Html.DisplayFor(modelItem => item.Value)
</td>
<td>
@Html.DisplayFor(modelItem => item.Date)
</td>
<td>
@foreach (var tag in item.Tags)
{
@Html.DisplayFor(modelItem => tag.Name)
}
</td>
</tr>
}
The problem is the Tags IEnumerable. It renders like this:

I want to separate tags so that they are readable easily (eg. "Tag1, Tag2, ...") or with pipe sign (" | "). I guess this is easily done, but as I can't C#/ASP well I can't get it to work. Tried adding text just after @Html.DisplayFor(modelItem => tag.Name) but this gives me compilation error.
If this changes anything, Tags are added with Tag-it.
tag.Namein an element styled asinline-blockand add padding or margin