1
phillipd
xoopsformtext seems to strip single quotes '
  • 2005/3/4 4:26

  • phillipd

  • Quite a regular

  • Posts: 219

  • Since: 2004/4/20


OK, well it's simpler than I thought. It appears that you can't put an "apostrophe" in a xoopsformtext gadget.

A xoopsformtextarea works ok. Why is this? No doubt it's something stupidly simple I'm missing. I note a "apostrophe" works in this forum on the "Subject" line. What am I doing wrong? Even a simple line like this doesn't show the apostrophe or anything after it:


$subtext = new XoopsFormText("Subject: ", "subject", 50, 50,"My test's");

When it renders, the apostrophe and the "s" are missing.


Thanks

Doug P

2
tedsmith
Re: xoopsformtext seems to strip single quotes '
  • 2005/3/31 15:41

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


I just noticed that in my case, the subject of my forum was "What's wrong with ...." and when I got my PM's teeling me a reply had been posted, everything after the ' was stripped out, so it just read "What..".

I know WF-Sections have had some trouble with apostorphes in subject and title lines but I think they've fixed it (or fixing it).

Should this be moved to the bug forum? Is it known about already?

3
Mithrandir
Re: xoopsformtext seems to strip single quotes

You have to sanitize variables before setting them as the value in text fields:
$ts =& MyTextSanitizer::getInstance();
$ts->htmlSpecialChars($text);

Login

Who's Online

227 user(s) are online (178 user(s) are browsing Support Forums)


Members: 0


Guests: 227


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