title: Remove img tag from Html.Raw in Razor View
body: <p>I am developing an ASP.Net MVC4 web application which has a News section that displays a list of News articles. The list shows the News Headline for each article and then prints out the first 400 characters of the News text as this is only a summary page. When the user clicks the News headline, they then get to see the News article in full.</p>
  
  <p>To add a News article to the site, I use FCKEditor as a rich text editor which also allows the user to upload an image to accompany the text. When I print out the first 400 characters of each News article I do so like this</p>
  
  <pre><code>@Html.Raw(news.newsText.Substring(0, 400))
  </code></pre>
  
  <p>This works fine whenever there is no image tag inside the first 400 characters, however, if the user adds an image to their text which is in the first 400 characters, the image is shown in the News summary and this makes it look messy.</p>
  
  <p>Rather, if there is an image tag inside the first 400 characters, I would prefer not to show it, and instead, just display text.</p>
  
  <p>I was wondering if this is possible?</p>
  
  <p>Thanks for you help.</p>