Page 1 of 1

[Solved] 1.6.1 Html Entities when using cms_selflink

Posted: Tue Jul 28, 2009 10:37 am
by SideshowBob
Hello everyone,

I have recently upgraded from 1.2.4 to 1.6.1 and I have noticed an issue when using cms_selflink.

On 1.2.4 the below code :

Code: Select all

{cms_selflink page='about' text='<img src="uploads/images/mylogo.gif" alt="My Alt text" />'}

would produce this html:

Code: Select all

<a href="http://www.mydomain.co.uk/about.htm" title="My Alt text"><img src="uploads/images/mylogo.gif" alt="My Alt text" /></a>
Since the upgrade, the output html is:

Code: Select all

<a href="http://www.mydomain.co.uk/about.htm" title="My Alt text" ><img src="uploads/images/mylogo.gif" alt="My Alt text" /></a>
Clearly this doesn't render correctly in a browser.

I have replicated this behavior on a clean installation of 1.6.1 but I don't know if this is a bug or user failure but it seems that anything within the 'text' parameter has htmlentities applied which clearly isn't desirable.

Thoughts and fixes welcome :-)
Bob

Re: 1.6.1 Html Entities when using cms_selflink

Posted: Tue Jul 28, 2009 2:42 pm
by blast2007
See these two posts here and here.

regards
blast

Re: 1.6.1 Html Entities when using cms_selflink

Posted: Tue Jul 28, 2009 3:00 pm
by SideshowBob
Ah, thanks Blast. I've no idea how I missed these posts when searching  :-[

Should/has this been reported as a bug?

Re: 1.6.1 Html Entities when using cms_selflink

Posted: Tue Jul 28, 2009 4:03 pm
by blast2007
SideshowBob wrote: Should/has this been reported as a bug?
I can't find an open bug in the forge, therefore I think this is new "feature".

regards
blast

Re: [Solved] 1.6.1 Html Entities when using cms_selflink

Posted: Tue Jul 28, 2009 5:06 pm
by SideshowBob
bug reported.