I have a long string and I want to display the first 50 characters of it (without including the HTML content). Can anyone suggest any method?
This is the code:
eBdb.EpubReader.Epub Epubobj = new eBdb.EpubReader.Epub(myPath);
litepub.Text = Epubobj.GetContentAsHtml();
In litepub.Text I am getting text along with HTML. But I want to display only first 50 characters from the result of that function.