首页 WordPress函数大全 filter_block_kses_value()

filter_block_kses_value()

2020-05-01 / 3877阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

filter_block_kses_value( string[]|string $value, array[]|string $allowed_html, string[] $allowed_protocols = array() )

Filters and sanitizes a parsed block attribute value to remove non-allowable HTML.

描述

参数

$value

(string[]|string)
(Required)
The attribute value to filter.

$allowed_html

(array[]|string)
(Required)
An array of allowed HTML elements and attributes, or a context name such as 'post'.

$allowed_protocols

(string[])
(Optional)
Array of allowed URL protocols.

Default value: array()

返回

(string[]|string) The filtered and sanitized result.

大家谈论
    我的见解