Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




wp_kses_stripslashes [ WordPress Function ]

wp_kses_stripslashes ( $string )
Parameters:
  • (string) $string String to strip slashes
Returns:
  • (string) Fixed string with quoted slashes
Defined at:



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.

Source


<?php
function wp_kses_stripslashes($string) {
    return 
preg_replace('%\\\\"%''"'$string);
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics