Categories > Your tips & tricks >

Writing out [

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Cruachan
Date: 2011-11-17
Time: 18:00

Writing out [

I want to write out the contents of a javascript array from a PHP variable.  However even with htmlconv set to no the square brackets is always converted to [

So my PHP variable might be
$myvar = "[1,2],[2,3]";
but using this in the template
[var.myvar;htmlconv=no]
always results in
[1,2],[,2,3]
How do I ensure the [ is not converted?
By: Skrol29
Date: 2011-11-17
Time: 20:59

Re: Writing out [