Categories > TinyButStrong general >

Apostrophe Display

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Maz
Date: 2005-11-22
Time: 17:53

Apostrophe Display

Just so I can rule out a bug I'm having in my code, is there anything in TBS that automatically adds a slash to an apostrophe? If so, is there a way to prevent it happening?
By: Skrol29
Date: 2005-11-22
Time: 18:23

Re: Apostrophe Display

> is there anything in TBS that automatically adds a slash to an apostrophe ?

No.

It maybe has to do something with Magic_Quotes_Gpc.
See the Php manual about get_magic_quotes_gpc() function
or try the following on affected variables:
  if (get_magic_quotes_gpc()==1) $x = stripslashes($x);

By: Maz
Date: 2005-11-22
Time: 19:03

Re: Apostrophe Display

Yeah, I pretty much have those stupid magic quotes taken care of and I've checked that the slash isn't there directly before the value is passed back to the template and it's not.

But it's obviously creeping in somewhere. Back to the drawing board...