[eluser]basementDUDE[/eluser]
This is what I use to get plain text from comments,
Code:
$comments = $this->input->post('comments', TRUE);
$comments = nl2br(strip_tags($comments));
If you want to use CI function instead, I think htmlspecialchars will allow user use html tags such as <div>, but that is also native php function.
Code:
$this->form_validation->set_rules('comments', 'comments', 'xss_clear|htmlspecialchars');
[quote author="victorche" date="1282481038"]But this is not connected with ...
Code:
$this->input->post('comments', TRUE);
or with "xss_clean" at all...
@basementDUDE, your code is pure php... And this is something i am aware of. I was just asking how to achieve the same, using CI functionality...[/quote]