This is documentation for Kohana v2.3.x.
Status | Draft |
---|---|
Todo | Proof read |
The security helper offers various methods that assist with input filtering.
'xss_clean' behaves the same as xss_clean in the Input library.
'strip_image_tags()' strips the image tags out of a string and returns the string trimmed without the image tags.
$string = '<b>Check this image:</b> <img src="http://www.example.com/example.jpg" />'; print Kohana::debug(security::strip_image_tags($string));
It will result in HTML as:
<b>Check this image:</b> http://www.example.com/example.jpg