NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: WillieB82 on October 23, 2016, 09:03:58 PM

Title: Quotation replaced with "
Post by: WillieB82 on October 23, 2016, 09:03:58 PM
Hi everyone,

I create the string with the following contents:   "Man1", "Man2", "Man3"

And save it in a Session Value.

Then put the session value on a page with  <!-- Net:s:Value -->

When viewing the page in html the string is converted to => &quot;Man1&quot;, &quot;Man2&quot;, &quot;Man3&quot;

I need the page html to stay like the original string.

Any suggestions?
Title: Re: Quotation replaced with &quot;
Post by: Bruce on October 23, 2016, 11:42:32 PM
couple of options;

change html tag from
<Net:s:whatever>
to
<Net:x:whatever>

OR

try adjusting your SessionValueName so it contains;
-t0-
as part of the _name_.
For example;

p_web.SSV('whatever-t0-','"Man1", "Man2", "Man3"')

then in your HTML

<Net:s:whatever-t0->

Let me know if that works - if it does I can explain why.

Cheers
Bruce
Title: Re: Quotation replaced with &quot;
Post by: willieb on October 24, 2016, 01:01:21 AM
Thank You Bruce!!

Changing from <!-- Net:s:Value --> to <!-- Net:x:Value --> did the trick.
Title: Re: Quotation replaced with &quot;
Post by: Bruce on October 24, 2016, 06:50:05 AM
cool. Net:x is for embedding xml (which is what you want to do here).

cheers
Bruce