Article/Faq highlighting breaking on "I" in search

Please report bugs here!

Moderator: Thorsten

Post Reply
jlocashio
Posts: 1
Joined: Thu Jun 13, 2013 9:19 pm

Article/Faq highlighting breaking on "I" in search

Post by jlocashio »

I am using phpMyFAQ 2.8.0.

If I do a search with the letter I in it, as in "How do I fix a car?" the search results return correctly, with highlighting on the words I searched on. If I select a particular FAQ/article to read from those results, however, I get broken HTML in the displayed article. The broken HTML seems to be putting a <span class="highlight"> in the middle of the existing <span class="highlight">from the search results.

Example of search results:
example1.jpg
Example of the output when you click on a FAQ/article from those search results:
example2.jpg
This only seems to happen if the search includes the "I"; if I searched for "fix car", everything works fine. I have verified that "i" is in my stopwords, but that doesn't seem to affect the highlighting, which appears to be the issue.
You do not have the required permissions to view the files attached to this post.
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Article/Faq highlighting breaking on "I" in search

Post by Thorsten »

Hi,

I'll work on it: https://github.com/thorsten/phpMyFAQ/issues/691

Thanks!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply