esc_textarea( string $text )
Escaping for textarea values.
描述
参数
- $text
-
(string)
(Required)
返回值
(string)
源代码
File: wp-includes/formatting.php
function esc_textarea( $text ) {
$safe_text = htmlspecialchars( $text, ENT_QUOTES, get_option( 'blog_charset' ) );
/**
* Filters a string cleaned and escaped for output in a textarea element.
*
* @since 3.1.0
*
* @param string $safe_text The text after it has been escaped.
* @param string $text The text prior to being escaped.
*/
return apply_filters( 'esc_textarea', $safe_text, $text );
}
更新日志
Version | 描述 |
---|---|
3.1.0 | Introduced. |
相关函数
Uses
-
wp-includes/formatting.php:
esc_textarea -
wp-includes/plugin.php:
apply_filters() -
wp-includes/option.php:
get_option()
Used By
-
wp-includes/embed.php:
print_embed_sharing_dialog() -
wp-admin/includes/network.php:
network_step2() -
wp-admin/includes/template.php:
get_inline_data() -
wp-admin/includes/template.php:
_list_meta_row() -
wp-admin/includes/class-wp-comments-list-table.php:
WP_Comments_List_Table::column_comment() -
wp-includes/formatting.php:
format_to_edit() -
wp-includes/class-wp-customize-control.php:
WP_Customize_Control::render_content()
Show 2 more used by
Hide more used by
你可能对这些文章感兴趣:
- wordpress函数get_the_posts_navigation()用法示例
- wordpress函数get_the_title()用法示例
- wordpress函数get_the_terms()用法示例
- wordpress函数get_the_tags()用法示例
- wordpress函数get_the_taxonomies()用法示例
- wordpress函数get_the_permalink()用法示例
- wordpress函数get_the_password_form()用法示例
- wordpress函数get_the_posts_pagination()用法示例
- wordpress函数get_the_modified_date()用法示例
- wordpress函数get_the_modified_time()用法示例
- wordpress函数get_the_modified_author()用法示例
- wordpress函数get_the_guid()用法示例
- wordpress函数get_the_ID()用法示例
- wordpress函数get_the_excerpt()用法示例
如有疑问,请前往问答中心反馈!
反馈