Categories > TinyButStrong general >

tinybutstrong replacing [ with [

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Roy
Date: 2007-12-01
Time: 18:47

tinybutstrong replacing [ with [

Hi all,

I'm still fairly new with TBS, I just made a few sites with it using just the simplest techniques. Now I come across something I don't know how to solve, so I'm asking it here...

I'm using Greybox on a site of mine, and greybox is called by the rel-attribute of the a-tag. An example from the example-file from the Greybox-packge:
<a href="http://google.com/" title="Google" rel="gb_page_center[640, 480]">Launch google.com in a 640x480 window</a>

As you can see, this rel-tags requires the same brackets used by TBS ( [
and ] ). Now when I put these in a variable in PHP, and display this variable in a template (using htmlconv=no) it gives the following code in the source:
<a href="http://google.com/" title="Google" rel="gb_page_center&#91;640, 480]">Launch google.com in a 640x480 window</a>

The only difference is that the opening bracket ( [ ) has been replaced by the sequence &#91;

Is it possible to stop TBS from doing this? This way greybox isn't loaded.
By: Roy
Date: 2007-12-01
Time: 19:09

Re: tinybutstrong replacing [ with &#91;

Ok, I'll just go sit in a corner and be ashamed of myself for a while for posting a question before having gone through anough searches...

The answer was right here:
http://www.tinybutstrong.com/manual.php#html_field_prm_protect