Fixed Search results formatting

MrDeranged

Well-known member
There seems to be a random issue with apostrophes and quotation marks when viewing search results. Same entries on the tag page are fine. Any ideas what might be causing this? Some entries render fine on search with the same text and some don't

Search page (messed up):

1603996191618.png
1603996300631.png

same results on the tags page (working fine):

1603996379271.png
1603996439318.png


Different item on search with same text working fine:

1603996518130.png
 

Brogan

XenForo moderator
Staff member
Click on an affected post to get the post ID, then check the xf_post table using phpMyAdmin.
 

MrDeranged

Well-known member
I will do that, but I just found something else interesting. The results returned (and errors) vary based upon what is searched.

Searching for "half persian 3 in 1" (errors visible):

1604334770837.png

Searching for "half persian" (same results, but different text and no formatting errors):

1604335010342.png
 

XF Bug Bot

XenForo bug fixer bot
Staff member
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.2.2).

Change log:
Prevent invalid characters from being displayed in certain cases when highlighting search results.
There may be a delay before changes are rolled out to the XenForo Community.
 
Top