Because there are multiple ways of encoding "special" characters, in particular the ampersand, how would one do a string comparison that removes all special characters from both the needle and the haystack to allow for an "apples to apples" comparison to check that the needle appears in the haystack?
For example, if I have a needle "black & decker", and I want to sanitize it down to "black decker" and then see if "black decker" appears in the haystack, I will need to do the same replacement I did on needle to haystack in order to account for all ways of encoding the ampersand and how "black & decker" might be encoded to appear in the haystack.
&
& (I've only seen this in WordPress editor markup)
&
Is there a preg_replace, regex or replacement method that can do this with some degree of accuracy?