BlogEngine.Core.Json.JsonPosts.GetTags C# (CSharp) Method

GetTags() static private method

static private GetTags ( ICollection tags ) : string
tags ICollection
return string
        static string GetTags(ICollection<string> tags)
        {
            if (tags == null || tags.Count == 0)
                return string.Empty;

            var html = tags.Aggregate("", (current, tag) => current + string.Format("<a href='#' onclick=\"ChangePostFilter('Tag','{0}','')\">{0}</a>, ", tag));
            return html.Trim().Substring(0, html.Trim().Length - 1);
        }