常用函数-convert_chars()

0条评论

常用函数-convert_chars()

说明

将字符串转换为一系列字符。

该函数移除Metadata标签<title> 和<category>,将 <br> 和<hr>转换为相应的XHTML,将统一码字符转换为可用值。

用法

<?php convert_chars( $content, $deprecated ) ?>

参数

$content

(字符串)(必需)被转换的字符串

默认值:None

$deprecated

(字符串)(可惜)弃用

默认值:''

返回的值

(字符串)

转换后的字符串

示例

注释

修改记录

自0.71版本后

源文件

convert_chars()位于 wp-includes/formatting.php中。

相关资源

发表新评论

此内容将保密,不会被其他人看见。
  • 自动将网址与电子邮件地址转变为链接。
  • 允许HTML标签:<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • 自动断行和分段。

更多关於格式化选项的信息

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.