Problem of HTML entities and quotes in search result
Posted: Fri Apr 05, 2019 9:55 am
Hello,
When I make a search, the results are correct (in terms of occurrences), but the way they are displayed is not :
- All HTML entities (such as " " are displayed without "&")
- All texts after quotes " ' " dissapear (truncated result).
Here is below an example :
==================
6. [56.00%] EquiTerre » Qui sommes-nousnbsp;? » Les acteurs » Elise <== "&" disappeared
Les acteurs. Elise.
http://www.equiterre.fr/elise - 37.8kb
7. [54.00%] EquiTerre » C\est vous qui le dites ! <== not quote anymore
C <== truncated result
http://www.equiterre.fr/temoignages - 75.8kb
8. [52.00%] EquiTerre » Nos activités » Pour enfants » Camps d\été <== not quote anymore
Le programme de nos camps d <== truncated result
http://www.equiterre.fr/activites-enfants-camps-ete - 38.0kb
==================
Do you know if there is somewhere a kind of setting I did not set correctly in sphider settings or PHP settings ?
I use PHP version 7.3, and all my pages are in UTF8 (without BOM).
Thank you very much for your help, and congratulations for keeping on mainting this wonderful tool Sphider !
When I make a search, the results are correct (in terms of occurrences), but the way they are displayed is not :
- All HTML entities (such as "&NBSP;" are displayed without "&")
- All texts after quotes " ' " dissapear (truncated result).
Here is below an example :
==================
6. [56.00%] EquiTerre » Qui sommes-nousnbsp;? » Les acteurs » Elise <== "&" disappeared
Les acteurs. Elise.
http://www.equiterre.fr/elise - 37.8kb
7. [54.00%] EquiTerre » C\est vous qui le dites ! <== not quote anymore
C <== truncated result
http://www.equiterre.fr/temoignages - 75.8kb
8. [52.00%] EquiTerre » Nos activités » Pour enfants » Camps d\été <== not quote anymore
Le programme de nos camps d <== truncated result
http://www.equiterre.fr/activites-enfants-camps-ete - 38.0kb
==================
Do you know if there is somewhere a kind of setting I did not set correctly in sphider settings or PHP settings ?
I use PHP version 7.3, and all my pages are in UTF8 (without BOM).
Thank you very much for your help, and congratulations for keeping on mainting this wonderful tool Sphider !