Core Function
View Source on Trac ↗ wp_kses_bad_protocol_once()
wp_kses_bad_protocol_once( mixed $content, mixed $allowed_protocols, mixed $count = 1 ) Sanitizes content from bad protocols and other characters.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $content string | Content to check for bad protocols. Required |
| $allowed_protocols string[] | Array of allowed URL protocols. Required |
| $count int | Depth of call recursion to this function. |
Return Value
(string)
Sanitized content.
Function Information
Since Version
1.0.0
Source File
wp-includes/kses.php
Advertisement