I am getting a very strange problem... I am creating a website and storing data in mysql
and data is phrased from different types of sources in the database. But the text and html I am storing is not clean. It's also saved some special characters and and extra space. Now how can I clean this data with php when I render it as html. I used trim()
and html_entity_decode()
.
These functions removed some white spaces but I still can't clean these  characters.
Here is screenshot from my phpmyadmin : http://postimg.org/image/ze8umokej/
And here is a screenshot of my page source : http://postimg.org/image/rdz5bxsuj/