Welcome Guest, Not a member yet? Register   Sign In
Filter special characters from xpath in PHP

When I run an xpath query e.g.
$xpath2 = new DOMXPath( $html2 );

in my code and display them in a webpage, I see special characters like:

I have tried to use preg_replace to filter them but because they can come in different varieties it is difficult to replace all. I need help with a php function to use to remove them and clean up the returned string.
Any help will be appreciated.

I am having the same problem myself. If anyone could provide any insights, it would be greatly appreciated!

Theme © iAndrew 2016 - Forum software by © MyBB