WordPress Search filter to remove possible script injections
WP does handle that case already, the script will never be executed, because the function the_search_query() will return its output escaped. Escaping this prior to the actual search would break searching in code. If you blog about script injections your visitors should be able to search for that. Update Here is one of my older … Read more