Data in my mysql database table has the special characters like '&'.

While using then I need to convert them to `&amp;`. I used the htmlspecialchars to convert them to HTML entities.

But few entry already has the `&amp;` and it converts them to `&amp;amp;` I need them to use as it is without conversion.

What to do?