Adds slashes to escape strings.

Slashes will first be removed if magic_quotes_gpc is set, see {@link http://www.php.net/magic_quotes} for more details.

Signature

addslashes_gpc( $gpc )
gpc
 (string) The string returned from HTTP request data.

Return

(string) Returns a string escaped with slashes.

Source

function addslashes_gpc($gpc) {
	if ( get_magic_quotes_gpc() )
		$gpc = stripslashes($gpc);

	return wp_slash($gpc);
}
WP Trac GitHub

Link here