escaping double quotes

User avatar
John
Site Admin
Posts: 2597
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

escaping double quotes

Post by John »

And if you run as:

texis build='update' migrationProfileTable_test/main.txt

is it right? The escape is probably happening when you print the output, not when the variable is set.
John Turnbull
Thunderstone Software
gaurav.shetti
Posts: 119
Joined: Fri Feb 27, 2009 9:09 am

escaping double quotes

Post by gaurav.shetti »

yes. Infact i am printint the o/p of ret (for capture) as well as printing the contents of the variable which was set with $ret.

I mean i tried both, got the same o/p
User avatar
mark
Site Admin
Posts: 5514
Joined: Tue Apr 25, 2000 6:56 pm

escaping double quotes

Post by mark »

Can you post the smallest complete script that demonstrates the problem?
User avatar
John
Site Admin
Posts: 2597
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

escaping double quotes

Post by John »

If you just say $ret or $var and you are in htmlmode the variable will be printed with HTML escapement, so if the variable contains " it will print as "

Use <fmt %s $var> or the /main.txt entry to print out the variable contents as-is.
John Turnbull
Thunderstone Software
gaurav.shetti
Posts: 119
Joined: Fri Feb 27, 2009 9:09 am

escaping double quotes

Post by gaurav.shetti »

Yes you are write. I tried printing out the variables using fmt %s . It is indeed not converting " into quot;
Post Reply