editor html

Last post 08-13-2005, 10:52 PM by Adam. 1 replies.
Sort Posts: Previous Next
  •  08-12-2005, 6:25 AM 9521

    editor html

    hello,
       how do i extract plain html from the editor in c#.
      When i use editor1.text it gives me the html in the format :
       sample 1:
          <table>
            <tr>
           </tr>
            <tr>
           </tr> 
          </table>
    but i whant to extract the html not formated:
    sample 2:
    <table><tr></tr><tr></tr></table>

    My objective is to insert this html in the database so i need the  html like the sample 2, how do i do that?

    thanks
     
     
     
     
  •  08-13-2005, 10:52 PM 9558 in reply to 9521

    Re: editor html

    un2005,
     
    Cute Editor does display nicely indented code in the HTML mode. But the indented code is only for display.

    Cute Editor should always generate this formate: "<table><tr></tr><tr></tr></table>".

    Please check the following example:

    http://cutesoft.net/example/general.aspx

    After you click the submit button, the following code will be generated by the editor:


    Title<table cellspacing="4" cellpadding="4" bgcolor="#ffffff" border="0"><tbody><tr><td><p><img src="/Uploads/j0262681.jpg" width="80"/></p></td><td><p>When your algorithmic and programming skills have reached a level which you cannot improve any further, refining your team strategy will give you that extra edge you need to reach the top. We practiced programming contests with different team members and strategies for many years, and saw a lot of other teams do so too. </p></td></tr><tr><td><p><img src="/Uploads/PH02366J.jpg" width="80"/></p></td><td><p>From this we developed a theory about how an optimal team should behave during a contest. However, a refined strategy is not a must: The World Champions of 1995, Freiburg University, were a rookie team, and the winners of the 1994 Northwestern European Contest, Warsaw University, met only two weeks before that contest. </p></td></tr></tbody></table><br /><br />

     

    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