insert link - converts "&" to "&"

Last post 12-17-2010, 9:05 AM by Eric. 5 replies.
Sort Posts: Previous Next
  •  11-12-2010, 7:34 AM 64989

    insert link - converts "&" to "&"

    Hi
     
    I'm having an issue with the the "Insert Hyperlink"
     
    The url I'm entering contains parameters -
     The "&" are being converted to "&"
     
    The data being entered in the cute editor is sent in an email
     
    The link is not working from the email with the "&"
     
    I can't do a global replace of "&" - because it can be valid in some cases
     
    Thanks for your help
    Sue
     
     
     
     
  •  11-15-2010, 12:37 PM 65010 in reply to 64989

    Re: insert link - converts "&" to "&"

    Dear Sue,
     
    Please set "UseSimpleAmpersand" to true and try it again:

    <!-- #include file = "cuteeditor_files/include_CuteEditor.asp" -->
    <html> 
        <head>  
     </head>
        <body>  
      <form name="theForm" action="Get_HtmlContent.asp" method="post">
      <br />
      <%   
       dim content     
       content ="<STRONG><EM><U>Easy to Install, Easy to Use</U></EM></STRONG><BR>"   
       Dim editor
       Set editor = New CuteEditor     
       editor.ID = "Editor1"
       editor.Text = content   
       editor.UseSimpleAmpersand = "true"   
       editor.Draw()
      %>  
      <br>
      <input type="submit" value="Submit"  ID="Submit2" NAME="Submit1">      
      </form>
     </body>
    </html>

    Thank you for asking
  •  11-15-2010, 12:55 PM 65013 in reply to 65010

    Re: insert link - converts "&" to "&amp;"

    Thank you so much!!!
    It seems to be okay now!
  •  11-16-2010, 12:41 PM 65046 in reply to 65013

    Re: insert link - converts "&" to "&amp;"

    Hi Eric,
     
    Thanks for you help on this issue
    I have another question
     
    I read the following in one of CuteSoft's posts
     
    W3C recommend that all '&' in query strings be converted to &amp; 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 &pound;
     
    If our code generates the "&" and not "&amp;" will be not be W3C compliant?
     
    The issue is that the html is sent in an email.
    The "&amp;" works when the link is clicked on from a browser
    but does not work when it's in the email
     
    Thank you again for your help
    Sue
     
  •  11-16-2010, 12:49 PM 65049 in reply to 65046

    Re: insert link - converts "&" to "&amp;"

    The info is also this url
     
    see 2nd to last link (Using simple ampersand)
     
    http://cutesoft.net/example/CommonTasks.aspx
     
    Thanks again
    Sue
     
     
  •  12-17-2010, 9:05 AM 65423 in reply to 65046

    Re: insert link - converts "&" to "&amp;"

    Dear Sue,
     
    If our code generates the "&" and not "&amp;" will be not be W3C compliant?
     
    Yes, if you use "&" instead of "&amp", it will not be W3C compliant.
     
    Thank you for asking
     
     
View as RSS news feed in XML