certains apostrophes disparaissent après passage de la fonction striptagsandcut

More
6 years 6 months ago - 6 years 6 months ago #69595 by AlainR
Bonjour.
Nous voyons une différence de traitement entre les apostrophes ’ et '.
La seconde disparaît après que le texte soit passé par la fonction striptagsandcut. Une façon de contourner cela et de remplacer "return htmlspecialchars($text1, ENT_QUOTES, 'UTF-8') . $text2;" par "return htmlspecialchars($text1, ENT_NOQUOTES, 'UTF-8') . $text2;" à la fin de la fonction dans le fichier /components/com_flexicontent/classes/helpers/html.php

Est-ce un problème connu ?
et est-ce problématique de remplacer ENT_QUOTES par ENT_NOQUOTES ?

Cette question des apostrophes est surtout problématique pour la recherche, car certains textes ne sont absolument pas trouvés selon que l'on cherche p.ex. "l'âge d'or" mais que le texte est écrit avec l'autre apostrophe : "l’âge d’or"

Merci d'avance pour la réponse.
Cdt.
Last edit: 6 years 6 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
6 years 6 months ago #69596 by micker
a mon avis cela peut venir de l'encodage choisis dans le champs (fonction de nettoyage et de securité)
Pouvez vous regarder ?

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
6 years 6 months ago - 6 years 6 months ago #69597 by AlainR
Merci Micker.
Parlez-vous de l'éditeur (JCE) ? ou des paramètres du champ FLEXIcontent ?
Last edit: 6 years 6 months ago by AlainR.

Please Log in or Create an account to join the conversation.

More
6 years 6 months ago #69598 by ggppdk
Hello

ENT_QUOTES
can be replaced with ENT_COMPAT

ENT_COMPAT will encode double quotes but it leave single quotes unencoded

and it should not create problems in our templates (or very little problems which can be fixed)

so you can use ENT_COMPAT now, (do not make any other changes to the method)
will make this change for next release


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
The following user(s) said Thank You: AlainR

Please Log in or Create an account to join the conversation.

More
6 years 6 months ago #69603 by ggppdk
Hello

we have included fix in new release


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
The following user(s) said Thank You: AlainR

Please Log in or Create an account to join the conversation.

More
6 years 6 months ago #69605 by AlainR
Many thanks for quick answer and resolving this problem.

ggppdk wrote: do not make any other changes to the method


How is it possible to change or add something to the method ?
Because a developer did that and now I have to report those modifications on each FLEXIcontent upgrade...

Many thanks again and best regards.

p.s. : the problem with search component is a real problem - how to solve it ?

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.289 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline