wp_kses_stripslashes() - WordPress 函数参考中文文档

返回介绍

wp_kses_stripslashes()

发布于 2017-09-11 字数 1202 浏览 920 评论 0

wp_kses_stripslashes( string $string )

Strips slashes from in front of quotes.


描述

This function changes the character sequence \" to just ". It leaves all other slashes alone. It’s really weird, but the quoting from preg_replace(//e) seems to require this.


参数

$string

(string)
(Required)
String to strip slashes


返回值

(string) Fixed string with quoted slashes


源代码

File: wp-includes/kses.php

function wp_kses_stripslashes($string) {
	return preg_replace('%\\\\"%', '"', $string);
}

更新日志

Version 描述
1.0.0 Introduced.

相关函数

Used By

  • wp-includes/kses.php:
    wp_kses_split2()

User Contributed Notes

上一篇:wp_kses_split2()

下一篇:wp_kses_version()

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

目前还没有任何评论,快来抢沙发吧!