From an answer from earlier post to get the first two lines in a rich textbox in sharepoint 2010 in a visual webpart i m using
var firstTwoLines = String.Join("\n", MyRichTextBox.Text.Split('\n').Take(2).ToArray());
..what if there is an image starting from the 2nd line..what condition should i use to check if there is an image present and then skip it?
<img ... />), or you need to skip the whole line which contains it? – Andrey Markeev Feb 1 '12 at 8:30