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.webp
1603996300631.webp

same results on the tags page (working fine):

1603996379271.webp
1603996439318.webp


Different item on search with same text working fine:

1603996518130.webp
 
Click on an affected post to get the post ID, then check the xf_post table using phpMyAdmin.
 
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.webp

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

1604335010342.webp
 
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 Bottom