wpseek.com
WordPress开发者和主题制作者的搜索引擎
wp_htmledit_pre is deprecated since version 4.3.0!
Alternative: format_for_editor()
Alternative: format_for_editor()
wp_htmledit_pre › WordPress Function
Since2.5.0
已弃用4.3.0
› wp_htmledit_pre ( $output )
参数: |
|
查看: | |
返回: |
|
定义在: |
|
文档: |
Formats text for the HTML editor.
Unless $output is empty it will pass through htmlspecialchars before the {@see 'htmledit_pre'} filter is applied.源码
function wp_htmledit_pre($output) { _deprecated_function( __FUNCTION__, '4.3.0', 'format_for_editor()' ); if ( !empty($output) ) $output = htmlspecialchars($output, ENT_NOQUOTES, get_option( 'blog_charset' ) ); // Convert only '< > &'. /** * Filters the text before it is formatted for the HTML editor. * * @since 2.5.0 * @deprecated 4.3.0 * * @param string $output The HTML-formatted text. */ return apply_filters( 'htmledit_pre', $output ); }