wp_slash


wp_slash ( $value )

Parameters:
  • (string|array) $value String or array of strings to slash.
Returns:
  • (string|array) Slashed $value
Defined at:

Description

Add slashes to a string or array of strings.

This should be used when preparing data for core API that expects slashed data. This should not be used to escape data going directly into an SQL query.

Related Functions

wp_unslash, wp_hash, wp_styles, wp_rss, wp_kses

Top Google Results

User discussions

wpseek mobile