| 状态 | 草稿 |
|---|---|
| Todo | Proof read |
| 官方最后更新时间 | 2008/05/01 20:31 |
安全性辅助函数用于确认用户输入的安全性。
'xss_clean' 方法和输入类里的 xss_clean 是一样的。
'strip_image_tags()' 删除内容中的图片标签(即img标签),并返回删除图片标签(img标签)以后的内容。
$string = '<b>Check this image:</b> <img src="http://www.example.com/example.jpg" />'; print Kohana::debug(security::strip_image_tags($string));
返回结果:
<b>Check this image:</b> http://www.example.com/example.jpg