Cheers guys, in the end I stripped the unwanted HTML tags using strip_tags() PHP native function. ------------------------------------------------------------------ $commentInputs = $this->data['Comment']; $data['Comment']['body'] = strip_tags($commentInputs['body'], '<p><a><b><i>'); ------------------------------------------------------------------
The only caveat is that iin this way, tags, as well as all words wrapped in the unwanted tags get removed. Dan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
