Brijesh81 Posted August 23, 2003 Posted August 23, 2003 Hi, I have a problem which needs to be addressed urgently. I am using mailto:he@his.com?subject=sub&body=strBody Now the problem is that if <strBody> comprises of HTML codes then this does not work, it works fine if <strBody> contains simple text. So, basically I need to parse html codes(eg.table<tr>,<td>) for outlook with mailto. Could anybody guide me in this. Any help on this is greatly appreciated. Thanks in advance. Quote
*Gurus* Derek Stone Posted August 23, 2003 *Gurus* Posted August 23, 2003 You're trying to remove all occurrences of HTML tags? Quote Posting Guidelines
*Gurus* Derek Stone Posted August 23, 2003 *Gurus* Posted August 23, 2003 Imports System.Text.RegularExpressions Dim invalidBody As String = "<b>Foobar</b>" Dim validBody As String = Regex.Replace(invalidBody, "<[^<>]+>", String.Empty) Quote Posting Guidelines
Brijesh81 Posted August 24, 2003 Author Posted August 24, 2003 Thanks a lot.. Derek Stone... I have used the solution provided by you. Best Regards, Brijesh Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.