Breaking Links with Amper signs (&)

Last post 04-30-2009, 3:19 PM by Adam. 1 replies.
Sort Posts: Previous Next
  •  04-30-2009, 11:40 AM 51711

    Breaking Links with Amper signs (&)

    When I insert a link with multiple Variables its replacing the Amper signs (&) with (&)
    making my lisnk break when the people click on them.
     
    is there a setting I can change so it stops doing this?
     
    Thanks
    Yaco
  •  04-30-2009, 3:19 PM 51722 in reply to 51711

    Re: Breaking Links with Amper signs (&)

    CuteEditor for ASP 6.3 Class Library

    Editor.UseSimpleAmpersand Property

    W3C recommend that all '&' in query strings be converted to & This is the only way to get a piece of HTML validated. The reason is that & is the start of an HTML entity, such as £

    So this:

                
            <a href="page.aspx?var1=one&amp;va­r2=two">link</a>
    is valid, whereas:
            <a href="page.aspx?var1=one&var2=t­wo">link</a>
    isn't.
    If you still want to use simple Ampersand in query strings, you can set this property to true. if you want to retrieve the CuteEditor HTML content in XHTML format, the 'UseSimpleAmpersand' property will be ignored.

     

     


    Example Code

          <%
               Dim editor
               Set editor = New CuteEditor
               editor.ID = "Editor1"
               'If you want to use simple Ampersand in query strings, you can set this property to true.
               editor.UseSimpleAmpersand = true
               editor.Text = "Hello World"
               editor.Draw()
          %>


    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