1
phillipd
Of apostrophes
  • 2005/3/4 21:39

  • phillipd

  • Quite a regular

  • Posts: 219

  • Since: 2004/4/20


I'm still having trouble with apostrophes in XOOPS objects. I can instantiate a XoopsFormTextArea() with some default text including text with an apostrophe and that works fine. But when I instantiate a XoopsFormText() with text containing an apostrophe, the apostrophe and all text to the right of it just disappear. I'm obviously missing something very basic. Can someone please clue me in?

Works:

$contents = new XoopsFormTextArea("Report","report","Some default text's that contain apostrophes",12,60);

Doesn't display anything at or after the apostrophe:

$contents = new XoopsFormText("Report","report",60,255,"Some default text's that contain apostrophes");


Thanks

Doug P

2
phillipd
Re: Of apostrophes
  • 2005/3/4 21:56

  • phillipd

  • Quite a regular

  • Posts: 219

  • Since: 2004/4/20


OK, I found a work around with the text sanitizer. Should I have to do that?

Doug P

3
brash
Re: Of apostrophes
  • 2005/3/5 2:06

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


Your host probably has magic_quotes enabled in their PHP environment. You should be able to turn this off with htaccess.

Login

Who's Online

312 user(s) are online (270 user(s) are browsing Support Forums)


Members: 0


Guests: 312


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits