NetTalk Central

Author Topic: Quotation replaced with "  (Read 3588 times)

WillieB82

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • Email
Quotation replaced with "
« 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?

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Quotation replaced with &quot;
« Reply #1 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
« Last Edit: October 23, 2016, 11:44:22 PM by Bruce »

willieb

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
    • Email
Re: Quotation replaced with &quot;
« Reply #2 on: October 24, 2016, 01:01:21 AM »
Thank You Bruce!!

Changing from <!-- Net:s:Value --> to <!-- Net:x:Value --> did the trick.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Quotation replaced with &quot;
« Reply #3 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