Loading ...
Sorry, an error occurred while loading the content.

YUI RTE multiple escape slashes -

Expand Messages
  • shamrog12
    I have the 2.5.2 version of YUI downloaded and I have found that like previous versions, the Rich Text Editor does not return the same JSON string as it does
    Message 1 of 4 , Jun 2 1:55 AM
    • 0 Attachment
      I have the 2.5.2 version of YUI downloaded and I have found that like previous versions,
      the Rich Text Editor does not return the same JSON string as it does in the
      http://developer.yahoo.com... version.

      The script I'm using is: http://developer.yahoo.com/yui/examples/editor/post_editor_clean.html

      Online, if I insert an image in the middle of the default text the JSON response is as
      follows:

      {"Results":{"raw_data":"This is some more test text.<br>This is some more test
      text.<br>This is some more test text.<img alt=\"\"
      src=\"http:\/\/www.google.com\/intl\/en_ALL\/images\/logo.gif\"><br>This is some
      more test text.<br>This is some more test text.<br>This is some more test text.<br>This
      is some more test text.<br>","filter":"no","status":"OK","data":"This is some more test
      text.<br>This is some ore test text.<br>This is some more test text.<img alt=\"\"
      src=\"http:\/\/www.google.com\/intl\/en_ALL /images\/logo.gif\"><br>This is some
      more test text.<br>This is some more test text.<br>This is some ore test text.<br>This
      is some more test text.<br>"}}


      Inserting the same image in the version running on my web server produces the
      following... note the multiple escape slashes....

      {"Results":{"raw_data":"This is some more test text.<br>This is some more test
      text.<br>This is some more test text.<img alt=\\\"\\\" style=\\\"height: 110px;\\\"
      src=\\\"http:\/\/www.google.com\/intl\/en_ALL\/images\/logo.gif\\\"><br>This is
      some more test text.<br>This is some more test text.<br>This is some more test
      text.<br>This is some more test text.<br>","filter":"no","status":"OK","data":"This is some
      more test text.<br>This is some more test text.<br>This is some more test text.<img
      alt=\\\"\\\" style=\\\"height: 110px;\\\"
      src=\\\"http:\/\/www.google.com\/intl\/en_ALL\/images\/logo.gif\\\"><br>This is
      some more test text.<br>This is some more test text.<br>This is some more test
      text.<br>This is some more test text.<br>"}}

      What kind of difference between the online version and the version running on my LAMP
      server could cause this?
    • Dav Glass
      shamrog12 -- You need to make sure that you are calling stripslashes on the data before echoing to back to the screen: http://us2.php.net/stripslashes Does
      Message 2 of 4 , Jun 2 6:48 AM
      • 0 Attachment
        shamrog12 --

        You need to make sure that you are calling stripslashes on the data before echoing to back to the screen:
        http://us2.php.net/stripslashes

        Does that help?
        Dav

        Dav Glass
        dav.glass@...
        blog.davglass.com




        + Windows: n. - The most successful computer virus, ever. +
        + A computer without a Microsoft operating system is like a dog
        without bricks tied to its head +
        + A Microsoft Certified Systems Engineer is to computing what a
        McDonalds Certified Food Specialist is to fine cuisine +


        ----- Original Message ----
        From: shamrog12 <shamrog12@...>
        To: ydn-javascript@yahoogroups.com
        Sent: Monday, June 2, 2008 1:55:37 AM
        Subject: [ydn-javascript] YUI RTE multiple escape slashes - <img alt=\\\"\\\" style=\\\...

        I have the 2.5.2 version of YUI downloaded and I have found that like previous versions,
        the Rich Text Editor does not return the same JSON string as it does in the
        http://developer.yahoo.com... version.

        The script I'm using is: http://developer.yahoo.com/yui/examples/editor/post_editor_clean.html

        Online, if I insert an image in the middle of the default text the JSON response is as
        follows:

        {"Results":{"raw_data":"This is some more test text.<br>This is some more test
        text.<br>This is some more test text.<img alt=\"\"
        src=\"http:\/\/www.google.com\/intl\/en_ALL\/images\/logo.gif\"><br>This is some
        more test text.<br>This is some more test text.<br>This is some more test text.<br>This
        is some more test text.<br>","filter":"no","status":"OK","data":"This is some more test
        text.<br>This is some ore test text.<br>This is some more test text.<img alt=\"\"
        src=\"http:\/\/www.google.com\/intl\/en_ALL /images\/logo.gif\"><br>This is some
        more test text.<br>This is some more test text.<br>This is some ore test text.<br>This
        is some more test text.<br>"}}


        Inserting the same image in the version running on my web server produces the
        following... note the multiple escape slashes....

        {"Results":{"raw_data":"This is some more test text.<br>This is some more test
        text.<br>This is some more test text.<img alt=\\\"\\\" style=\\\"height: 110px;\\\"
        src=\\\"http:\/\/www.google.com\/intl\/en_ALL\/images\/logo.gif\\\"><br>This is
        some more test text.<br>This is some more test text.<br>This is some more test
        text.<br>This is some more test text.<br>","filter":"no","status":"OK","data":"This is some
        more test text.<br>This is some more test text.<br>This is some more test text.<img
        alt=\\\"\\\" style=\\\"height: 110px;\\\"
        src=\\\"http:\/\/www.google.com\/intl\/en_ALL\/images\/logo.gif\\\"><br>This is
        some more test text.<br>This is some more test text.<br>This is some more test
        text.<br>This is some more test text.<br>"}}

        What kind of difference between the online version and the version running on my LAMP
        server could cause this?


        ------------------------------------

        Yahoo! Groups Links
      • shamrog12
        Beautiful. Did I miss something in the documentation somewhere that discusses how to implement the online examples? Thanks Dav. ... style= ... ...
        Message 3 of 4 , Jun 2 8:54 AM
        • 0 Attachment
          Beautiful. Did I miss something in the documentation somewhere that discusses how to
          implement the online examples? Thanks Dav.

          --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@...> wrote:
          >
          > shamrog12 --
          >
          > You need to make sure that you are calling stripslashes on the data before echoing to
          back to the screen:
          > http://us2.php.net/stripslashes
          >
          > Does that help?
          > Dav
          >
          > Dav Glass
          > dav.glass@...
          > blog.davglass.com
          >
          >
          >
          >
          > + Windows: n. - The most successful computer virus, ever. +
          > + A computer without a Microsoft operating system is like a dog
          > without bricks tied to its head +
          > + A Microsoft Certified Systems Engineer is to computing what a
          > McDonalds Certified Food Specialist is to fine cuisine +
          >
          >
          > ----- Original Message ----
          > From: shamrog12 <shamrog12@...>
          > To: ydn-javascript@yahoogroups.com
          > Sent: Monday, June 2, 2008 1:55:37 AM
          > Subject: [ydn-javascript] YUI RTE multiple escape slashes - <img alt=\\\"\\\"
          style=\\\...
          >
          > I have the 2.5.2 version of YUI downloaded and I have found that like previous versions,
          > the Rich Text Editor does not return the same JSON string as it does in the
          > http://developer.yahoo.com... version.
          >
          > The script I'm using is:
          http://developer.yahoo.com/yui/examples/editor/post_editor_clean.html
          >
          > Online, if I insert an image in the middle of the default text the JSON response is as
          > follows:
          >
          > {"Results":{"raw_data":"This is some more test text.<br>This is some more test
          > text.<br>This is some more test text.<img alt=\"\"
          > src=\"http:\/\/www.google.com\/intl\/en_ALL\/images\/logo.gif\"><br>This is some
          > more test text.<br>This is some more test text.<br>This is some more test
          text.<br>This
          > is some more test text.<br>","filter":"no","status":"OK","data":"This is some more test
          > text.<br>This is some ore test text.<br>This is some more test text.<img alt=\"\"
          > src=\"http:\/\/www.google.com\/intl\/en_ALL /images\/logo.gif\"><br>This is some
          > more test text.<br>This is some more test text.<br>This is some ore test
          text.<br>This
          > is some more test text.<br>"}}
          >
          >
          > Inserting the same image in the version running on my web server produces the
          > following... note the multiple escape slashes....
          >
          > {"Results":{"raw_data":"This is some more test text.<br>This is some more test
          > text.<br>This is some more test text.<img alt=\\\"\\\" style=\\\"height: 110px;\\\"
          > src=\\\"http:\/\/www.google.com\/intl\/en_ALL\/images\/logo.gif\\\"><br>This is
          > some more test text.<br>This is some more test text.<br>This is some more test
          > text.<br>This is some more test text.<br>","filter":"no","status":"OK","data":"This is
          some
          > more test text.<br>This is some more test text.<br>This is some more test text.<img
          > alt=\\\"\\\" style=\\\"height: 110px;\\\"
          > src=\\\"http:\/\/www.google.com\/intl\/en_ALL\/images\/logo.gif\\\"><br>This is
          > some more test text.<br>This is some more test text.<br>This is some more test
          > text.<br>This is some more test text.<br>"}}
          >
          > What kind of difference between the online version and the version running on my LAMP
          > server could cause this?
          >
          >
          > ------------------------------------
          >
          > Yahoo! Groups Links
          >
        • Dav Glass
          shamrog12 -- It s not in the online docs since that is the responsibility of the backend architecture.. Different backend languages handle strings
          Message 4 of 4 , Jun 2 9:01 AM
          • 0 Attachment
            shamrog12 --

            It's not in the online docs since that is the responsibility of the backend architecture..

            Different backend languages handle strings differently..

            Dav

            Dav Glass
            dav.glass@...
            blog.davglass.com




            + Windows: n. - The most successful computer virus, ever. +
            + A computer without a Microsoft operating system is like a dog
            without bricks tied to its head +
            + A Microsoft Certified Systems Engineer is to computing what a
            McDonalds Certified Food Specialist is to fine cuisine +


            ----- Original Message ----
            From: shamrog12 <shamrog12@...>
            To: ydn-javascript@yahoogroups.com
            Sent: Monday, June 2, 2008 8:54:14 AM
            Subject: [ydn-javascript] Re: YUI RTE multiple escape slashes - <img alt=\\\"\\\" style=\\\...

            Beautiful. Did I miss something in the documentation somewhere that discusses how to
            implement the online examples? Thanks Dav.

            --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@...> wrote:
            >
            > shamrog12 --
            >
            > You need to make sure that you are calling stripslashes on the data before echoing to
            back to the screen:
            > http://us2.php.net/stripslashes
            >
            > Does that help?
            > Dav
            >
            > Dav Glass
            > dav.glass@...
            > blog.davglass.com
            >
            >
            >
            >
            > + Windows: n. - The most successful computer virus, ever. +
            > + A computer without a Microsoft operating system is like a dog
            > without bricks tied to its head +
            > + A Microsoft Certified Systems Engineer is to computing what a
            > McDonalds Certified Food Specialist is to fine cuisine +
            >
            >
            > ----- Original Message ----
            > From: shamrog12 <shamrog12@...>
            > To: ydn-javascript@yahoogroups.com
            > Sent: Monday, June 2, 2008 1:55:37 AM
            > Subject: [ydn-javascript] YUI RTE multiple escape slashes - <img alt=\\\"\\\"
            style=\\\...
            >
            > I have the 2.5.2 version of YUI downloaded and I have found that like previous versions,
            > the Rich Text Editor does not return the same JSON string as it does in the
            > http://developer.yahoo.com... version.
            >
            > The script I'm using is:
            http://developer.yahoo.com/yui/examples/editor/post_editor_clean.html
            >
            > Online, if I insert an image in the middle of the default text the JSON response is as
            > follows:
            >
            > {"Results":{"raw_data":"This is some more test text.<br>This is some more test
            > text.<br>This is some more test text.<img alt=\"\"
            > src=\"http:\/\/www.google.com\/intl\/en_ALL\/images\/logo.gif\"><br>This is some
            > more test text.<br>This is some more test text.<br>This is some more test
            text.<br>This
            > is some more test text.<br>","filter":"no","status":"OK","data":"This is some more test
            > text.<br>This is some ore test text.<br>This is some more test text.<img alt=\"\"
            > src=\"http:\/\/www.google.com\/intl\/en_ALL /images\/logo.gif\"><br>This is some
            > more test text.<br>This is some more test text.<br>This is some ore test
            text.<br>This
            > is some more test text.<br>"}}
            >
            >
            > Inserting the same image in the version running on my web server produces the
            > following... note the multiple escape slashes....
            >
            > {"Results":{"raw_data":"This is some more test text.<br>This is some more test
            > text.<br>This is some more test text.<img alt=\\\"\\\" style=\\\"height: 110px;\\\"
            > src=\\\"http:\/\/www.google.com\/intl\/en_ALL\/images\/logo.gif\\\"><br>This is
            > some more test text.<br>This is some more test text.<br>This is some more test
            > text.<br>This is some more test text.<br>","filter":"no","status":"OK","data":"This is
            some
            > more test text.<br>This is some more test text.<br>This is some more test text.<img
            > alt=\\\"\\\" style=\\\"height: 110px;\\\"
            > src=\\\"http:\/\/www.google.com\/intl\/en_ALL\/images\/logo.gif\\\"><br>This is
            > some more test text.<br>This is some more test text.<br>This is some more test
            > text.<br>This is some more test text.<br>"}}
            >
            > What kind of difference between the online version and the version running on my LAMP
            > server could cause this?
            >
            >
            > ------------------------------------
            >
            > Yahoo! Groups Links
            >




            ------------------------------------

            Yahoo! Groups Links
          Your message has been successfully submitted and would be delivered to recipients shortly.