関数 wp_strip_all_tags()
2014/12/11
関数 wp_strip_all_tags()
定義ファイル :/blog/wp-includes/formatting.php 8
1 2 3 4 5 6 7 8 9 | function wp_strip_all_tags($string, $remove_breaks = false) { $string = preg_replace( '@<(script|style)[^>]*?>.*?</\\1>@si', '', $string ); $string = strip_tags($string); if ( $remove_breaks ) $string = preg_replace('/[\r\n\t ]+/', ' ', $string); return trim( $string ); } |