如果参数 $richedit 为 false,format_to_post 这个函数仅仅包含了一个名为 format_to_edit 的 fliter。
如果参数 $richedit 为 true,则它将继续对内容执行 htmlspecialchars 操作,转化成 html 实体。
用法
参数
$content
(string) (required) 将编辑的文本
default: none
$richedit
(boolean) (optional) 是否 $content 将进行 htmlspecialchars 操作。
default: false
返回值
(string)
编辑之后的文本。
修改记录
since: 0.71
源文件
wp-includes/formatting.php.