Friday, August 26, 2011

Re: HTML ENTITIES

$author_fields[Aut']['name'] = addslashes(Sanitize::html($this->data['Post']['name'],array('remove' => true)));

This is the insert line.

On Sat, Aug 27, 2011 at 1:53 AM, Ryan Schmidt <google-2010@ryandesign.com> wrote:

On Aug 26, 2011, at 14:03, Prabha vathi wrote:

> http://www.quotesoftheday.co.in/famous-quotes/360/true-love-always-makes-a-man-better-no-matter-what-woman-inspires-it
> You can find it here. Please check the author name. Why it is displaying like that?
> If you are not able to load the link, This is the problem
>
> Instead of displaying the proper text, it is displaying the entity of that text in link
>
> <?php echo $html->link(
>                     $author['name'], array(
>                         'controller' => 'auts',
>                         'action' => 'authors',
>                         'name' => $author['name']
>                     ),
>                     array('title' => $author['name'])
>                 );
>                 ?>
> When i try to add escape => false i lose the link and it displays the correct name

Sounds like something before this code is already escaping it. Perhaps it's even already escaped in the database (and it shouldn't be).


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



--
--
Prabhavathi
http://www.indiapublicforum.com

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