you need to add the option to escape the link and set to false so special
chars within the link are NOT escaped

http://dlmax.org/2007/04/02/cakephp-12-html-link-with-html-or-image/

<http://dlmax.org/2007/04/02/cakephp-12-html-link-with-html-or-image/>$html->link($title
. $html->tag("span", null, array('class' =>
'test')), $url, array('escape' => false));
- S




On 17 February 2010 11:29, Waterschaats <[email protected]> wrote:

> I want a link with a span inside. like this: <a
> href=''>link<span>text</span></a>
>
> When I use this the span tags are converted to html entities(&lt;span
> class="text"&gt)
> $html->link($title . $html->tag("span", null, array('class' =>
> 'test')), $url);
>
> 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