title: Image link with $confirmMessage alert in Cakephp HTMLhelper - possible?
body: <p>Is it possible to create an image with a link that also has a pop up alert [$confirmMessage] using the html helper in CakePHP?</p>
  
  <p>This is my current text link:</p>
  
  <pre><code>$this-&gt;Html-&gt;link('Clear list', array('controller' =&gt; 'items', 'action' =&gt; 'clearlist', $model['Model']['id']), array(), 'Clear list?')
  </code></pre>
  
  <p>This how the image helper creates images with links:</p>
  
  <pre><code>echo $this-&gt;Html-&gt;image("recipes/6.jpg", array( "alt" =&gt; "Brownies", 'url' =&gt; array('controller' =&gt; 'recipes', 'action' =&gt; 'view', 6)));
  </code></pre>
  
  <p>However this allows only an htmlattributes array as the arguements for the link. </p>
  
  <p>The $confirmMessage alert is not an html attribute is it?</p>
  
  <p>This is the code I tried:</p>
  
  <pre><code>echo $this-&gt;Html-&gt;link($this-&gt;Html-&gt;image("clearall.png", array("alt" =&gt; "Clear list")), array('controller' =&gt; 'items', 'action' =&gt; 'clearlist', $model['Model']['id']), array(), 'Clear list?');
  </code></pre>
  
  <p>However this code printed the correct html for my img as text:</p>
  
  <pre><code>&amp;lt;img src=&amp;quot;/img/clearall.png&amp;quot; alt=&amp;quot;Clear list&amp;quot; /&amp;gt;
  </code></pre>
  
  <p>Do I have to give up on htmlhelper in this case?</p>