whitelisted-url-protocols
来自「eGroupWare is a multi-user, web-based gr」· 代码 · 共 16 行
TXT
16 行
kses whitelisted URL protocols==============================From kses 0.2.0, it has a function that checks all attribute values for URLprotocols and only allows the protocols given in a whitelist.If you call kses the old way with two parameters - a string and an$allowed_html array - it will take its own default array, which whitelists theprotocols http, https, ftp, news, nntp, telnet, gopher and mailto. Prettyreasonable, but anyone who wants to change it just calls the kses() functionwith a third parameter, like this:$string = kses($string, $allowed_html, array('http', 'https'));Note that you shouldn't include any colon after http or other protocol names.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?