Author |
|
mgm Newbie
Joined: 13 June 2008
Online Status: Offline Posts: 6
|
Posted: 13 June 2008 at 9:59pm | IP Logged
|
|
|
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 |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 14 June 2008 at 7:25am | IP Logged
|
|
|
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 |
|
|