Support forums

Live Support, Chat and HTML Editor
    
Welcome to Support forums Sign in | Join | Help Messenger
in Search

Microsoft Outlook Formatting

Last post 08-26-2008, 4:16 PM by Adam. 1 replies.
Sort Posts: Previous Next
  •  08-26-2008, 1:45 AM 43265

    Microsoft Outlook Formatting

    Hey there.  I just got this control and it's great so far.  I'm having a problem though.  I'm writing an email client, and I'm getting in emails from Outlook and I'm trying to pass the html generated from Outlook through Cute to try to get it in the right format.  Seems like cute has quite a few handy functions for this, but the ones that seem most likely don't seem to be working correctly.
     
    What I've tried to do is this...
     
    Dim CU As New CuteEditor.Editor
    CU.Text = Email.HTMLBody
    CU.CleanUpMicrosoftWordHTML()
    CU.CleanUpHTMLCode()
     
    Both of these functions don't seem to be formatting the emails the way I'm wanting them.
     
    I'm getting stuff like this:
     
    v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);}
     
    Of course MS is behind this…Obviously we need these emails to be highly professional and clean…There IS a spellcheck…right? Probably should default to auto check spelling so it is always professional :+)
     
    Anybody have any idea how to remove this formatting and convert outlook ellipses and apostrophes to their HTML counterparts?  Any help would be greatly appriciated!
  •  08-26-2008, 4:16 PM 43283 in reply to 43265

    Re: Microsoft Outlook Formatting

    MiStACoRn,
     
    Have you input the above content into editor?
     
    The above code is the outlook CSS style code. If you set the following property to true, Cute Editor should remove those code. However Cute Editor doesn't have the feature to convert outlook ellipses and apostrophes to their HTML counterparts.
     

    Editor.EnableStripStyleTagsCodeInjection Property

    Specifies whether to remove inject <Style> tags which contain malicious, client-side executable code before writing the string into the db. When this property is set to true (the default) Cute Editor strips all <Style> tags which contain malicious, client-side executable code from the html to prevent style tag injection attack.


    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML