wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



wp_kses_stripslashes › WordPress Function

Depuis1.0.0
Dépréciéen/a
wp_kses_stripslashes ( $content )
Paramètres:
  • (string) $content String to strip slashes from.
    Requis: Oui
Retourne:
  • (string) Fixed string with quoted slashes.
Défini(e) dans:
Codex:

Strips slashes from in front of quotes.

This function changes the character sequence " to just ". It leaves all other slashes alone. The quoting from preg_replace(//e) requires this.


Source

function wp_kses_stripslashes( $content ) {
	return preg_replace( '%\\\\"%', '"', $content );
}