Hi,

I didn't get what you are trying to achieve here. You want sanitized data in
$gnews which is paginated list but you are sanitizing $this->data.
However, Sanitize::stripTags() needs first parameter as a string and as per
your description, $this->data seems to be an array.

Amit Badkas

PHP Applications for E-Biz: http://www.sanisoft.com



On Tue, Dec 14, 2010 at 2:47 AM, Lord_JABA <[email protected]> wrote:

> I want to get rid of div tags in data from rss just before i send it
> to view.
> I'm trying do this that way:
> function index(){
>                $this->data=Sanitize::stripTags($this->data, 'div');
>                $this->set('gnews',  $this->paginate('GoogleNews') );
>        }
> and that way:
> function index(){
>                Sanitize::stripTags($this->data, 'div');
>                $this->set('gnews',  $this->paginate('GoogleNews') );
>        }
> but I'm still getting:
> (...)HTC EVO 4G</a></div><div></div><div>(...)
> from<?php debug($gnews)?>
>
> What mistake I'm making??
>
> 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 [email protected]
> To unsubscribe from this group, send email to
> [email protected]<cake-php%[email protected]>For
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

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 [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

Reply via email to