wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_kses_stripslashes › WordPress Function

Od1.0.0
Przestarzałyn/a
wp_kses_stripslashes ( $content )
Parametry:
  • (string) $content String to strip slashes from.
    Wymagane: Tak
Powrót:
  • (string) Fixed string with quoted slashes.
Zdefiniowane na:
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.


Źródło

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