Hi,
I have a Wordpress website.
The data is stored in the database as HTML code .
So this text : employee”s
Is stored like this employee& #8217;s

The problem comes when I use the search function,because it compares this value employee”s to the database's contents,instead of comparing employee& #8217;s to the database's contents

I know that I must add htmlentities filter to the query-ed text,but I searched inside the Wordpress folder and there are too many functions and I can't figure it out where to place my filter,where to edit .

Any suggestions ?

I had a quick look at version 2.7.1. Newer versions may be similar. Look at wp-includes/query.php, beginning on line 1739. That looks like a good starting point.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.