Categories > TinyButStrong general >

Escaping left square barcket

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: garyro
Date: 2005-02-11
Time: 21:57

Escaping left square barcket

Here is the  PHP code
toolTips .= "Text_$id=[\"$shortDescription\",\"$longDescription\"];\n";

Here is what is in the template
[var.toolTips;htmlconv=no;noerr]

Here is what is rendered
Text_38=["",""];

In otherwords since this is actually a javascript array I am outputting I need the "left square bracket". Is there wome way to accomplish this.

I need to build the Javascript array in the PHP code not in the template

Thanks
Gary
By: garyro
Date: 2005-02-11
Time: 21:59

Re: Escaping left square barcket

Just found the answer in another post