Re: Cleaning Microsoft Word tags from HTML in C#

  •  09-02-2013, 4:16 PM

    Re: Cleaning Microsoft Word tags from HTML in C#

    The result is different when using version 6.7 but still doesn't produce the expected result.

     

    Here's an example where I am using an HTML string containing Microsoft Office tags:

    and here's the result after cleaning it up with CuteEditor 6.7 (notice the HTML tag is missing, the entire HEAD section is missing and even the BODY tag is missing):

     

    To be clear, I am simply trying to clean my HTML with the following line of C# code:

    var cleanHtml = EditorUtility.CleanUpMicrosoftWordHTML(originalHtml); 

     

    I will email the full HTML I use for my testing to [email protected]

View Complete Thread