Glossary Term
wp_kses_bad_protocol()
3 tags
1 category
wp_kses_bad_protocol() — Sanitizes a string and removed disallowed URL protocols. This function removes all non-allowed protocols from the beginning of the string. It ignores whitespace and the case of the letters, and it does understand HTML entities. It does its work recursively, so it won’t be fooled by a string like javascript:javascript:alert(57).
Inputs: $content (string): Content to filter bad protocols from. $allowed_protocols (string[]): Array of allowed URL protocols.
Returns string: Filtered content.
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
