On Dec 14, 2010, at 09:09, euromark wrote:

> what you need is h() - in the view templates:
> <?php echo h($var); ?>
> 
> thats all you need to escape and secure your views.

Yeah but that doesn't accomplish his stated goal: to remove the div tags that 
are in the RSS data he's receiving:

> From: Lord_JABA [mailto:lordj...@gmail.com]
> Sent: December-13-10 5:48 PM
> To: CakePHP
> Subject: Why Sanitize::stripTags not working in controller index() function;
> 
> I want to get rid of div tags in data from rss just before i send it
> to view.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to