Reputation: 251
What is the best approach when building strings in html Helpers? Are Stringbuilders good enough when attached to MvcHtmlString.Create(stringbuilder)? Is there another approach which is better?
Upvotes: 0
Views: 53
Reputation: 20240
StringBuilder
is fine but you could also use System.Web.Mvc.TagBuilder
when building HTML content in your helper.
Upvotes: 2