编码 unicode 的值,用于 uri。
用法
参数
$utf8_string
(string) (required)
default: none
$length
(integer) (optional) 字符串的最大长度
default: 0
返回值
(string)
已经将 unicode 编码的字符串
注解
sanitize_title_with_dashes() 用这个函数来转化 utf-8 字符。
修改记录
since: 1.5.0
源文件
wp-includes/formatting.php