Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET Objects

 AfterLogic Forum : MailBee.NET Objects
Subject Topic: HtmlToPlainMode Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
mgm
Newbie
Newbie


Joined: 13 June 2008
Online Status: Offline
Posts: 6
Posted: 13 June 2008 at 9:59pm | IP Logged Quote mgm

The HTMLToPlainMode includes any text between <STYLE> and </STYLE> tags into the plain text body. This text should not be included.

As an example, in this Hotmail messages, all the text between the <STYLE> tags is included in the text body.

<STYLE>
#ygrp-mlmsg
{font-size:13px;font-family:arial,helvetica,clean,sans-serif ;}
#ygrp-mlmsg table
{font-size:inherit;font:100%;}
#ygrp-mlmsg select, input, textarea
{font:99% arial,helvetica,clean,sans-serif;}
#ygrp-mlmsg pre, code....
</STYLE>

Is there any way to fix this?

Malcolm
Back to Top View mgm's Profile Search for other posts by mgm
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 14 June 2008 at 7:25am | IP Logged Quote Alex

You can use MailBee.Html.RuleSet.AddTagRemovalRule method to remove any unwanted tags from any string.

You may download MailBee WebMail Lite ASP.NET (it's shipped as source code) and find AddTagRemovalRule usage example in WEB\App_Code\BaseWebMailActions.cs file. The code there does exactly the same thing - prepares HTML content for displaying as plain-text.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide