Quotes in HTML tags go missing

Last post 09-22-2006, 1:52 PM by Adam. 3 replies.
Sort Posts: Previous Next
  •  09-21-2006, 9:30 AM 22905

    Quotes in HTML tags go missing

    Hi
     
    I have noticed that when I type in some html e.g.
    <img alt="hello" src="wiggle.jpg" height="10" width="10" /> and then switch views back to normal or save then the quotes go missing from the alt, height, width fields and others, yet remains on the src!
     
    It also removes the quotes when I do a pasteHTML on the client side.
     
    Ideally I would like my quotes to remain, as its very annoying to have text disappearing.
     
    I have set the following tags, are there any other that will stop this behaviour?
     
        <CE:Editor ID="Editor1" DisableAutoFormatting="true" UseRelativeLinks="True" RemoveServerNamesFromUrl="True"
          AutoConfigure="simple" EnableBrowserContextMenu="false" EnableContextMenu="true"
          EnableStripScriptTags="false" Height="350" Width="650" runat="server"  />
    Thanks
     
     
  •  09-21-2006, 1:43 PM 22916 in reply to 22905

    Re: Quotes in HTML tags go missing

    AndyFel,
     
    This is IE behaviour.
     
    After you submit the form, Cute Editor will fix it in the server side.
     
    Demo:
     
     
     

    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

  •  09-22-2006, 4:41 AM 22955 in reply to 22916

    Re: Quotes in HTML tags go missing

    Hi
     
    I can see it replaces the tags in the above example, initially I could not get mine to do the same.
     
    However I found using the XHTML property it replaces the tags. Is this what you are using on this page?
     
    Until now we have only been using the text property to set and get the text.
    Are there any problems with using the XHTML property?
    What sort of things does it alter? Besides adding quotes?
     
    Thanks
    Andy
  •  09-22-2006, 1:52 PM 22975 in reply to 22955

    Re: Quotes in HTML tags go missing

    AndyFel,
     
    >>However I found using the XHTML property it replaces the tags. Is this what you are using on this page?
     
    Yes.
     
    It may clean up your HTML code if your HTML code is not clean enough.  For example:
     
    Use lowercase for all tag names
    XHTML requires that all tags be lower-case. Instead of <STRONG> or <Strong>, you must now use <strong>.
     
     
    Close all tags, even empty ones
    Every XHTML tag should have a closing mate — i.e., there should be a closing </p> for every <p>, and a closing </li> for every <li>, etc.
    For empty tags, such as <img> and <hr>, you should add a forward slash before the end of tag. So those tags would now look like <img src="img/logo.gif" /> and <hr />.
     
    Put quotes around all attribute values
    Instead of writing <p class=myclass>, now you must write <p class="myclass">. (This one should help improve the readability of your code, too.)
     
     

    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