string rendering problem with Apostrophe (') sign in XML

  • Hi,

    I have a given some name of the pano and display it with "textfield.swf" while pano is loading. It is working perfectly, but when i have text with Apostrophe (') sign i will not render it properly and append the next function as a string.

    For Example,
    <scene name="scene01" title="test pano onstart="set(plugin[title].html,[p]This is Hotel's Name[/p]); someaction01(); someaction01();">

    Output is as below
    This is Hotel's Name[/p]); someaction01(); someaction01();
    but should be only This is Hotel's Name not the like above output.

    How can i render the string with Apostrophe (') sign?

    Thanks

    --
    Pratiks

  • Hi Zephyr,

    Thanks for your quick reply and spend time on this issue.

    Unfortunately, i have tried all three but no change in result.

    is there any other way if you know, please let me know.

    --
    Pratiks

  • You can also use data tag to avoid this problem:

    Code
    <scene name="scene01" title="test pano onstart="set(plugin[title].html, get(data[scene1title].content)); " ...
    
    
    <data name="scene1title">
      <p>This is Hotel's Name</p>
    </data>

    There's also one bug in your code - note that you didn't close title attribute in <scene> tag (missing quotation sign).

  • Hi sachagriffin,

    Quote

    & # 3 9 ; (without spaces)


    It is working fine with above code for Apostrophe (') sign, but i am still getting the output as before which is This is Hotel's Name[/p]); someaction01(); someaction01();

    Thanks for time.

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

    Hi panomaster,

    Quote

    <scene name="scene01" title="test pano onstart="set(plugin[title].html, get(data[scene1title].content)); " ...

    <data name="scene1title">
    <p>This is Hotel's Name</p>
    </data>


    The above trick works perfectly *thumbsup*

    Thanks all for you supports

    --
    Pratiks

  • Hi sachagriffin,

    Quote

    onstart="set(plugin[title].html,'[p]This is Hotel's Name[/p]'); someaction01(); someaction01();">

    That isn't work and giving the same result.

    Thanks

    --
    Pratiks

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!