Categories > TinyButStrong general >

Problem with parameter and finding the end of the tag...

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Julien
Date: 2005-09-08
Time: 12:34

Problem with parameter and finding the end of the tag...

Hi,

I've a problem when merging a block with a parameter containing a simple quote (apostrophe in french, i don't know the correct word in english, well you see, this little caracter after between the "don" and the "t" of "don't"...)

TBS return an error :
TinyButStrong Error (Tag definition): Can't found the end of the tag

So i have this piece of code in my template :
<balise_bien>              [block_bien;block=balise_bien;p1=75007;p2=Saint Thomas d'Aquin;p3=Appartement;p4=Achat]
            <table width="100%"  border="0" cellspacing="4">
              <tr>
                <td height="45" valign="top"><a href="Achat-Vente-Appartement-[block_bien.Id_Biens].html"><span class="orange_b11"><font size="+1">[block_bien.bien] [block_bien.nb_piece]</font></span></a><br>
  <a href="Achat-Vente-Appartement-[block_bien.Id_Biens].htm">M&eacute;tro [block_bien.metro]<br>
[block_bien.description_tronquee]</a>...</td>
                <td align="right" valign="top"><a href="Achat-Vente-Appartement-[block_bien.Id_Biens].htm" class="orange_b11"><font size="+1">[block_bien.prix]&nbsp;&euro;</font></a></td>
              </tr>
            </table>
</balise_bien>

if somebody can solve this for me...
the other problem is that all these parameters, come from another query, also merged by TBS, so i don't see how i could do...

Thanks very much for your help... this is an urgent pbm for me...

Julien.
By: Skrol29
Date: 2005-09-08
Time: 12:58

Re: Problem with parameter and finding the end of the tag...

Hello Julien,

You can protect parameter's values using simple quotes, and use an extra simple quote to protect a simple quote inside the string.
Example:
p2='Saint Thomas d''Aquin'

If the value comes from a TBS fields, you can ask TBS to protect it.
Example:
p2='[value;htmlconv=esc]'
By: Julien
Date: 2005-09-09
Time: 09:33

Re: Problem with parameter and finding the end of the tag...

Woah. This is the most quick reply forum i've ever seen.
TBS seems very great and i try to use it more and more.
Also, i find that a lot of my problems can be easily solved but i don't know enough much how to use TBS... i will go on and try.
Thank you very much skrol.