Check out the LimeSurvey source code on GitHub!

Edit Title in Source code mode and question about the & sign

More
5 years 3 months ago #68040 by Mike1985
My customer wants an "&" sign in their survey title. I notice that there is not a "source" option for Title like there is with the other fields (i.e Description, Welcome, etc)..

If you put "&" in the field it stores it in the database as is. When you load the survey up, the title (even looking in the source code) is still "&". It doesn't convert to "&".

If you edit the field through phpMyAdmin, the changes are made and you do actually get "&" in the source code when you load the survey again.

Is this a potential flaw in LimeSurvey? Are there any risks for people using older browsers?

Any advice would be much appreciated.

Mike

PS I am working on version 1.90+

Please Log in to join the conversation.

More
5 years 3 months ago #68052 by Mazi
Why would this cause problems if you enter the "&" sign at the survey title instead of the "&" sign?

You can test if this is fixed at the latest version by testing our online Demo at Demo.limesurvey.org/admin (external link) which always runs the latest Limesurvey version.
Username: admin
Password: test
If you can reproduce the problem there and think this is a bug please report back.


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
5 years 3 months ago #68059 by Mike1985
Because that's not correct HTML code. You're not supposed to have "&"s out there on their own. They should all be converted to "&"s.

Basic rules of HTML... or so I'm told!

Mike

Please Log in to join the conversation.

More
5 years 3 months ago #68065 by DenisChenu

Mike1985 wrote: Basic rules of HTML... or so I'm told!

Only for url,

Not true in utf8, and LS use utf8 :).

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form