CE Stripping Out Code

Last post 05-18-2005, 5:43 PM by merlock. 3 replies.
Sort Posts: Previous Next
  •  11-29-2004, 8:56 PM 2694

    CE Stripping Out Code

    I have code like
     
    <!-- #BeginEditable "CALIST" -->[Table of Contents]<!-- #EndEditable -->
     
    In CE version 3 it did not remove the <!-- #BeginEditable "CALIST" -->.  When I upgraded it now removes those comments.  Now all that is left is [Table of Contents].   I use those comments to find the editable regions in the HTML file.  How do I stop CE from removing those tags?
     
    Thanks.
  •  12-01-2004, 9:41 AM 2740 in reply to 2694

    Re: CE Stripping Out Code

    wescomputer:

    Just sorry that the CuteEditor4.0 remove all the html/xml comment by default .
    We will adjust the code to support the html/xml-comment .
     
    Regards , Terry .
  •  12-04-2004, 12:31 AM 2837 in reply to 2740

    Re: CE Stripping Out Code

    wescomputer,
     
    This problem has been resolved in the latest build.

    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

  •  05-18-2005, 5:43 PM 6803 in reply to 2837

    Re: CE Stripping Out Code

     Adam wrote:
    wescomputer,
     
    This problem has been resolved in the latest build.
     
    Hey Adam,
     
    I just noticed that the Editor will throw a hard error when their are multiple hyphens in the comment tag. I know multiple hyphens is not compliant but is there anyway to not throw a hard error? 

    eg: <!-- comment is ok -->   <!------ This comment thows error ------>  


    The specific error I get is 

    An XML comment cannot have '--' inside, and '-' cannot be the last character.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.ArgumentException: An XML comment cannot have '--' inside, and '-' cannot be the last character.
     
     
     
    Thanks
View as RSS news feed in XML