html_entity_decode() will convert all HTML entities to their applicable characters.
This function is the opposite of htmlentities() in that it converts all HTML entities in the string to their applicable characters.

PHP and Javascript Code Snippets for Common Uses
With this online generator, you can URL decode a string. URL encoding is typically done to ensure safe pasing of data through a URL query parameter.
Download URL encoder from Github here