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