百度 | 神马 | 搜狗 | 技术文档 | 学习资料分享 - 记录帝国CMS及运维技术的点点滴滴
你的位置:首页 > 实用IT技术 » 正文

【Wordpress相关】WordPress 常用函数 / convert_chars

发布时间:2020-09-17

WordPress 常用函数 / convert_chars,

简介

转换一些字符:

<title> 和 <category> 这些标签将会被删除
<br> 和 <hr> 被转换成 <br /> 和 <hr /> 这样正确的写法。
一些 Unicode 的字符转换到转换到有效范围内。

用法

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

参数

$content
(string) (required) 需要转换的字符串
Default: 无

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script>

$deprecated
(string) (optional) 舍弃的参数,不再使用。
Default: ”

返回值

(string)
转换之后的字符串。

修改记录

Since: 0.71

源文件

wp-includes/formatting.php.

Top