Re: CleanUpHTMLCode and CleanUpMicrosoftWordHTML buggy

  •  01-03-2006, 8:17 PM

    Re: CleanUpHTMLCode and CleanUpMicrosoftWordHTML buggy

    And, for one more example, if instead I call Editor.CleanUpHTMLCode() after my user hits "save", the Editor.Text property goes from this:

    "<span style=\"FONT-WEIGHT: bold; FONT-SIZE: 14pt; MARGIN-BOTTOM: 6pt; FONT-FAMILY: Arial\">Here is Section Heading</span><br></span><br>Here is section text<br><br><span style=\"FONT-WEIGHT: bold; FONT-SIZE: 12pt; MARGIN-BOTTOM: 3pt; FONT-FAMILY: Arial\">And a sub section</span></span><br></span><br><br></span>"

    to this:
    "Here is Section Heading<br><br>Here is section text<br><br>And a sub section<br><br><br>"

    I thought this call was to clean up extraneous html, extra tags, etc, not to remove *all* formatting!




View Complete Thread