Search results replace & with &amp; When, for example, I search for Eat &amp; Drink, the search results show &amp;amp; instead of &amp;. 


  


Is there any way to avoid this?
Got it! Used the below code and everything works fine.

filter_var($snippet, FILTER_SANITIZE_STRING);