Dim replaceWith As String = ""
Dim removedBreaks As String = Line.Replace(vbCr & vbLf, replaceWith).Replace(vbLf, replaceWith).Replace(vbCr, replaceWith)
Please "Mark as Answer" if this post helps.Thank You :)
Marked as answer by shan000 on May 02, 2012 06:51 PM
shan000
Member
491 Points
446 Posts
how to remove html tags to make a simple text
May 01, 2012 02:14 PM|LINK
Hi ,
anyone please tell me how i can remove all html tags from text..
Please Visit : www.classifiedspak.com
AmalO.Abdull...
Contributor
3116 Points
764 Posts
Re: how to remove html tags to make a simple text
May 01, 2012 02:17 PM|LINK
hi try this
public string Strip(string text)
{
return Regex.Replace(text, @”<(.|\n)*?>”, string.Empty);
}
shan000
Member
491 Points
446 Posts
Re: how to remove html tags to make a simple text
May 01, 2012 02:24 PM|LINK
thanks it worked for html tags
and how i can remove these lines such as
"\n\r" etc
Please Visit : www.classifiedspak.com
AmalO.Abdull...
Contributor
3116 Points
764 Posts
Re: how to remove html tags to make a simple text
May 02, 2012 06:01 AM|LINK
try