[ic] quoted=1 and |pipes|

Grant emailgrant at gmail.com
Wed Apr 8 19:12:22 UTC 2009


>> [tmpn values]|value1| |value2| |value3|[/tmpn]
>> [loop list="[scratch values]" quoted=1]
>> ...stuff...
>> [/loop]
>
> Grant:
>
> The loop parser uses Text::ParseWords::shellwords() to handle this, so
> the code for what constitutes a delimiter is embedded in a CPAN module.
>
> But if you escape embedded quotes in your values then it should
> resolve OK.
>
> The following:
> <html>
> <body>
> [loop quoted=1 list=|plain-value "quoted value" "value with \"embedded
> \" quotes"| ]
>   my code is : [loop-code]<br/>
> [/loop]
> </body>
> </html>
>
> Gives:
> my code is : plain-value
> my code is : quoted value
> my code is : value with "embedded" quotes
>
> Regards,
> Carl

Thanks Carl.  Escaping the quotes did prevent IC from getting confused
as to where the delimiter quotes are, but the \ character doesn't get
stripped out as it does in your example.  Do you know why that is
happening?

- Grant



More information about the interchange-users mailing list