title: change link in text to hyperlink in controller
body: <p>I'm having trouble converting text to a hyperlink in a controller, then sending it to the view.</p>
  
  <p>So far, I have:<br>
  Controller:</p>
  
  <pre><code>foreach (dynamic tweet in Timeline())
  {
      string text = tweet["text"].ToString();
      const string pattern = @"http(s)?://([\w+?\.\w+])+([a-zA-Z0-9\~\!\@\#\$\%\^\&amp;amp;\*\(\)_\-\=\+\\\/\?\.\:\;\'\,]*)?";
      Regex regexCheck = new Regex(pattern);
  
      MatchCollection matches = regexCheck.Matches(text);
  
      for (int i = 0; i &lt; matches.Count; i++)
      {
          text = string.Format(@"&lt;a href={0}&gt;{1}&lt;/a&gt;", matches[i].Value, matches[i].Value);
      }
  
      timeline.Add(text);
  }
  </code></pre>
  
  <p>View:</p>
  
  <pre><code>@Html.DisplayFor(model =&gt; model.Timeline)
  </code></pre>
  
  <p>But It keeps displaying the literal text!<br>
  Display: <code>&lt;a href=http://t.co/fm0ruxjVXe&gt;http://t.co/fm0ruxjVXe&lt;/a&gt;</code></p>
  
  <p>Could anyone please show me how this is done? I am quite new to MVC.</p>