wp_unslash() – Remove slashes from a string or array of strings.

You appear to be a bot. Output may be restricted

Description

Removes slashes from a string or recursively removes slashes from strings within an array.

This should be used to remove slashes from data passed to core API that expects data to be unslashed.

Usage

$string|array = wp_unslash( $value );

Parameters

$value
( string|array ) required – String or array of data to unslash.

Returns

string|array Unslashed `$value`, in the same type as supplied.

Source

File name: wordpress/wp-includes/formatting.php
Lines:

1 to 3 of 3
function wp_unslash( $value ) {
  return stripslashes_deep( $value );
}
 

 View on GitHub View on Trac