Filters the list of protocols allowed in HTML attributes.
Parameters
$protocols
string[]- Array of allowed protocols e.g.
'http'
,'ftp'
,'tel'
, and more.
Source
*
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |
Filters the list of protocols allowed in HTML attributes.
$protocols
string[]'http'
, 'ftp'
, 'tel'
, and more.*
Version | Description |
---|---|
3.0.0 | Introduced. |
You must log in before being able to contribute a note or feedback.
Allow Skype call links.
The filter should to run before init.
Note: this example only works in PHP 5.3+