Saturday, August 27, 2011

Re: HTML ENTITIES

echo $html->link(
                Sanitize::html($post_array['content'], array('remove' => true)),
                array(
                    'controller' => 'posts',
                    'action' => 'view',
                    'id' => $post_array['id'],
                    'quotes' => $this->Link->makeSeoUrl(Sanitize::html($post_array['content'], array('remove' => true)))
                ),
                array('title' => substr(Sanitize::html($post_array['content'], array('remove' => true)),0,20)." ... Quotes of the day", 'class' => 'agrizlink')
            );

Now db has text like this - you're - but it is displayed like this - you're in view.
But if there is no link, then it is working correctly. What is the problem?

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: