Categories > TinyButStrong general >

strange conversion

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: joris
Date: 2007-10-18
Time: 11:30

strange conversion

Hi there,

I have a part of JavaScript that is printed through [var.scriptlist;]

It turned out that the variable scriptlist was converted. So I added htmlconv=no; to [var.scriptlist;]. --> [var.scriptlist;htmlconv=no;]
everything is displayed correct, except for the character '['
that one is converted to [

which then corrupts my javascript...

Scriptlist is the following data:
photo[0] = "http://www.google.com";
photo[1] = "http://www.google.com";
photo[2] = "http://www.google.com";
photo[3] = "http://www.google.com";
etc.

which becomes:
photo[0] = "http://www.google.com";
photo[1] = "http://www.google.com";
photo[2] = "http://www.google.com";
photo[3] = "http://www.google.com";

What can I do to fix this?
By: joris
Date: 2007-10-18
Time: 11:32

Re: strange conversion

OK, quick one...

Problem solved!
Also added protect=no to the variable in the template!

:-)