WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/wp kses stripslashes

Contents

Description

Strips slashes from in front of quotes.

This function changes the character sequence \" to just ". It leaves all other slashes alone. It's really weird, but the quoting from preg_replace(//e) seems to require this.

Usage

<?php wp_kses_stripslashes$string ?>

Parameters

$string
(string) (required) String to strip slashes
Default: None

Return Values

(string) 
Fixed strings with quoted slashes

Examples

Notes

Change Log

Since: 1.0.0

Source File

wp_kses_stripslashes() is located in wp-includes/kses.php.

Related

See also index of Function Reference and index of Template Tags.