Categories > TinyButStrong general >

The escape character!!

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: RwD
Date: 2005-10-09
Time: 09:27

The escape character!!

I am working on multilanguage using tbs and it is working fine except I cannot use entities inside my message ids...

For example if I have [gettext;text=some example & an entity; htmlconv=no] then this will screw up everything because tbs stops at the semicolon...

However, I found I can use single quotes around the value like: [gettext;text='some example & an entity'; htmlconv=no]
But this is no good when I actually need to have a single quote in as well.

For now I am single quoting the lines and using ' as the single quote in message id's. But I think there is a real need for an escape character in one way or the other...
By: Skrol29
Date: 2005-10-09
Time: 14:52

Re: The escape character!!

Hi RwD,

In order to have a simple quote inside a string already delimited by simple quotes, juste use two simple quotes.

  [gettext;text='that''s an example & an entity';htmlconv=no]
By: RwD
Date: 2005-10-11
Time: 07:25

Re: The escape character!!

That is not in the manual. At least I couldn't find it.
By: Skrol29
Date: 2005-10-11
Time: 09:41

Re: The escape character!!

Damed ! You're rigth.
I'll change that.
Thanks.