function _clean_response( &$response ) { $bad_encoding = array( "<sup>&", ";</sup>" ); $good_encoding = array( "","" ); $response = str_replace( $bad_encoding, $good_encoding, $response ); }