HTML gets mangled when an anchor tag has an apostrophe in the href

Last post 10-11-2012, 8:15 AM by Kenneth. 7 replies.
Sort Posts: Previous Next
  •  09-21-2012, 11:59 AM 74718

    HTML gets mangled when an anchor tag has an apostrophe in the href

    Bug when adding anchor tag with apostrophe in href:

     

    For example: go to HTML mode and paste the following:

     

    <a href="BLOCKED SCRIPT window.confirm('close window?');">test link</a>

     

    Then switch back to Normal mode.  Switch back again to HTML code and you'll see that the source code has been changed to:

     

    <a href="BLOCKED SCRIPT window.confirm(" close window?');"close window?');">test link</a>

    This is a critical issue for us because we have all sorts of existing content which gets mangled simply by opening a content that contains anchor tags with apostrophe in href.  Thank you for any help/assistance on this.

  •  09-21-2012, 12:00 PM 74719 in reply to 74718

    Re: HTML gets mangled when an anchor tag has an apostrophe in the href

    FYI: BLOCKED SCRIPT = j a v a s c r i p t :
  •  09-21-2012, 12:41 PM 74721 in reply to 74719

    Re: HTML gets mangled when an anchor tag has an apostrophe in the href

    Hi jywang,
     
    Just tested the code your provided on the online demo http://cutesoft.net/example/general.aspx, it works fine. Can you try on it too? 


    If the online demo works for you, please download the version 6.6 latest build and try again.


    Download url: http://cutesoft.net/downloads/folders/21904/download.aspx


    Regards,


    Ken
  •  10-09-2012, 10:50 AM 74931 in reply to 74721

    Re: HTML gets mangled when an anchor tag has an apostrophe in the href

    It doesn't work for me using IE9.

     

    Go to HTML mode and paste in (remove _REMOVE_):

     

    <a href="j_REMOVE_avascript: window.confirm('close window?');">test link</a>

     

    Switch back to NORMAL and then HTML again and you will see:

     

    <a href="j a v a s c r i p t: window.confirm(" close window?');"close window?');">test link</a> 

     

    I could not reproduce in Chrome.  What browser are you testing with? 

     

    UPDATE: Looks like this is an IE only issue.  I could not reproduce with Chrome, Firefox, Safari, and Opera. 

  •  10-10-2012, 7:38 AM 74939 in reply to 74931

    Re: HTML gets mangled when an anchor tag has an apostrophe in the href

    Hi jywang,

     

    Please downlaod the package below, it should fix this issue.

     

    http://cutesoft.net/downloads/folders/21904/download.aspx

     

    Regards,

     

    Ken 

  •  10-10-2012, 3:23 PM 74943 in reply to 74939

    Re: HTML gets mangled when an anchor tag has an apostrophe in the href

    The download appears to be the same as the latest 6.6 release.  Were there supposed to be a change to address this issue?  We are already using this latest release.

     

    And, the problem can be replicated on the demo page: http://cutesoft.net/example/general.aspx

     

    Thanks for your help,

     

    John

     

    -----

     

    To reproduce:

     

    Add in HTML mode:

     

    <a href="window.confirm('hi');">asdf</a> 
     

    Switch to WYSIWYG mode and back to HTML mode and notice that the above has turned into:

     

    <a href="window.confirm(" hi');"hi');">asdf</a> 
     

    Switch back and forth again and it becomes:

     

    <a href="window.confirm(" hi?);?hi?);?>asdf</a> 
     

  •  10-10-2012, 3:24 PM 74944 in reply to 74939

    Re: HTML gets mangled when an anchor tag has an apostrophe in the href

    removed due to dupe
  •  10-11-2012, 8:15 AM 74956 in reply to 74944

    Re: HTML gets mangled when an anchor tag has an apostrophe in the href

    Hi jywang,

     

    Can you downlaod the package I sent above and delete the old dll files and the "CuteSoft_Client" folder then use the new one to try again?

     

    It works fine for me.

     

    Regards,

     

    Ken 

View as RSS news feed in XML