Welcome Guest, Not a member yet? Register   Sign In
Strip HTML tag
#13

[eluser]CroNiX[/eluser]
From the manual: Note: You can also use any native PHP functions that permit one parameter, like trim, htmlspecialchars, urldecode, etc.

So, you should just be able to add it as a rule.
Code:
$this->form_validation->set_rules('customer', 'Customer', trim|required|strip_tags|xss_clean');


Messages In This Thread
Strip HTML tag - by El Forum - 04-01-2010, 05:54 AM
Strip HTML tag - by El Forum - 04-01-2010, 06:01 AM
Strip HTML tag - by El Forum - 04-01-2010, 06:08 AM
Strip HTML tag - by El Forum - 04-01-2010, 06:16 AM
Strip HTML tag - by El Forum - 04-01-2010, 06:24 AM
Strip HTML tag - by El Forum - 04-01-2010, 06:28 AM
Strip HTML tag - by El Forum - 04-01-2010, 06:36 AM
Strip HTML tag - by El Forum - 04-01-2010, 07:30 AM
Strip HTML tag - by El Forum - 04-01-2010, 07:35 AM
Strip HTML tag - by El Forum - 04-01-2010, 07:47 AM
Strip HTML tag - by El Forum - 04-01-2010, 07:50 AM
Strip HTML tag - by El Forum - 04-01-2010, 08:12 AM
Strip HTML tag - by El Forum - 04-04-2010, 07:51 PM
Strip HTML tag - by El Forum - 04-04-2010, 10:54 PM
Strip HTML tag - by El Forum - 04-05-2010, 05:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB