I am having a problem with razor and models.
In my view I have a model with a list with "article" objects.
So I do a foreach with @MvcHtmlString.Create(article.Intro) which works great.
Then when I want a substring of that intro:
@MvcHtmlString.Create(article.Intro).ToHtmlString().Substring(0, 50) the page ends in endless loop (which happens often when razor can't render something) without an error.
Does anyone know how I can get this substring ?