Kentico Tag output but not links

122 Views Asked by At

With help from Branded, i have tag working. At this point, we don't need tags to link, so i have tags being displayed like this (in an ascx transformation):

<p class='date'><%# IfEmpty(Eval("DocumentTags"),"",Eval("DocumentTags").ToString() + " | ") %><%# FormatDateTime(Eval("Date"),"MMM d, yyyy") %></p>

This works, but i get the tags wrapped in double quotes. I'm traying TrimEnd, or LastIndexOf, but just getting errors.

1

There are 1 best solutions below

3
On BEST ANSWER

Use the method Replace() on the double quotes. Something like Eval<string>("DocumentTags").Replace("\"", "") should work.