Re: CleanUpHTMLCode and CleanUpMicrosoftWordHTML buggy

  •  07-18-2007, 10:09 AM

    Re: CleanUpHTMLCode and CleanUpMicrosoftWordHTML buggy

    Hi.
    I updated to current version 6.0.0.0 , CuteEditor 6.0 Build 2007-07-17.
    TEST 1:
    WORD NTML
    ------------------------
    Editor1.Text property contains :
    "<div><span>&nbsp;\r\n<p class=\"MsoNormal\" style=\"margin-left: 17.85pt\"><span lang=\"EN-US\" style=\"color: green\">Test Text<strong style=\"mso-bidi-font-weight: normal\"> <em style=\"mso-bidi-font-style: normal\">Test</em> Text <o:p></o:p></strong></span></p>\r\n<p class=\"MsoNormal\" style=\"margin-left: 17.85pt\"><strong style=\"mso-bidi-font-weight: normal\"><u><span lang=\"EN-US\" style=\"color: green\">Test Text <o:p></o:p></span></u></strong></p>\r\n<p class=\"MsoNormal\" style=\"margin-left: 17.85pt\"><strong style=\"mso-bidi-font-weight: normal\"><span lang=\"EN-US\" style=\"color: green; font-family: Arial\">Test Text <o:p></o:p></span></strong></p>\r\n<p class=\"MsoNormal\" style=\"margin-left: 17.85pt\"><strong style=\"mso-bidi-font-weight: normal\"><span lang=\"EN-US\" style=\"font-size: 10pt; color: green\">Test Text <o:p></o:p></span></strong></p>\r\n</span></div>\r\n";
    Editor1.CleanUpMicrosoftWordHTML();
    Editor1.Text property contains :
    "\r\n  <div>\r\n    <span> \r\n<p  ><span >Test Text<strong ><em >Test</em> Text </strong></span></p><p  ><strong ><u><span >Test Text </span></u></strong></p><p  ><strong ><span >Test Text </span></strong></p><p  ><strong ><span >Test Text </span></strong></p></span>\r\n  </div>\r\n";
    -----------------
    TEST 2:
    NORMAL HTML
    ------------------------
    Editor1.Text property contains :
    "<div><span style=\"color: red\">Test text&nbsp; </span>\r\n<div><span style=\"font-size: 10pt\">Test text</span> </div>\r\n<div><strong>Test text</strong> </div>\r\n<div><span style=\"font-family: Arial\">Test text</span> </div>\r\n</div>\r\n";
    Editor1.CleanUpMicrosoftWordHTML();
    Editor1.Text property contains :
    "\r\n  <div>\r\n    <span >Test text  </span>\r\n    <div>\r\n      <span >Test text</span>\r\n    </div>\r\n    <div>\r\n      <strong>Test text</strong>\r\n    </div>\r\n    <div>\r\n      <span >Test text</span>\r\n    </div>\r\n  </div>\r\n";
    -----------------
    Is it normal ? Why "style" has been deleted ? 
    I repeat question:
    What functions on the Client Side have I for cleaning Word HTML ?
     
View Complete Thread