title: CakePHP - using $this->Html->link with $this->Html->image....generating ascii instead of actual HTML
body: <p>I'm using cakephp 2.3.0. I searched in the manual for quite awhile, but I haven't found the answer. I'm trying to use $this->Html->link, along with $this->Html->image. I'm trying to create the ability to click on an image. Any ideas as to why the ascii rendering of quotes is being generated?</p>
  
  <p>Here is my snippet codeset in my view ctp:</p>
  
  <pre><code>echo $this-&gt;html-&gt;tableCells(
          array(
              array(
                  array (
                     $this-&gt;Html-&gt;link($myActivity['Activity']['name'], array('controller' =&gt; 'users', 'action' =&gt; 'edit'), array('title' =&gt; '')), 
                              array('align' =&gt; 'left')),
                      array ($myActivity['Activity']['status'], array('align' =&gt; 'left')),
                      array ($myActivity['Activity']['any_messages'], array('align' =&gt; 'left')),
                      $date2,
                      array ($this-&gt;Html-&gt;link(
                              $this-&gt;Html-&gt;image('pencil.jpg', array('alt' =&gt; 'Edit', 'border' =&gt; '0', 'width' =&gt; '25')), 
                              array('controller' =&gt; 'users', 'action' =&gt; 'add'), array('title' =&gt; ''))
                      ),
                      $this-&gt;Html-&gt;image('trashcan.jpg', array('alt' =&gt; 'Delete', 'border' =&gt; '0', 'width' =&gt; '25')),
                      $this-&gt;Html-&gt;image('copy.png', array('alt' =&gt; 'Copy', 'border' =&gt; '0', 'width' =&gt; '25')),
              )
           )  
        );
  </code></pre>
  
  <p>Below is the actual HTML result of the code above. As you can see, the generated HTML is showing ascii version of quotes (") and '&lt;' and '>':</p>
  
  <pre><code>&lt;tr&gt;
      &lt;td align="left"&gt;
          &lt;a href="/activities/index.php/users/add" title=""&gt;Running&lt;/a&gt;
      &lt;/td&gt;
      &lt;td align="left"&gt;Live&lt;/td&gt;
      &lt;td align="left"&gt;no&lt;/td&gt;
      &lt;td&gt;02/18/13&lt;/td&gt;
      &lt;td&gt;
          &lt;a href="/activities/index.php/users/edit" title=""&gt;&amp;lt;img src=&amp;quot;/activities/app/webroot/img/pencil.jpg&amp;quot; alt=&amp;quot;Edit&amp;quot; border=&amp;quot;0&amp;quot; width=&amp;quot;25&amp;quot; /&amp;gt;&lt;/a&gt;
      &lt;/td&gt;
      &lt;td&gt;
          &lt;img src="/activities/app/webroot/img/trashcan.jpg" alt="Delete" border="0" width="25"&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>Below is what I would expect the HTML to look like:</p>
  
  <pre><code>&lt;tr&gt;
      &lt;td align="left"&gt;
          &lt;a href="/activities/index.php/users/add" title=""&gt;Running&lt;/a&gt;
      &lt;/td&gt;
      &lt;td align="left"&gt;Live&lt;/td&gt;
      &lt;td align="left"&gt;no&lt;/td&gt;
      &lt;td&gt;02/18/13&lt;/td&gt;
      &lt;td&gt;
          &lt;a href="/activities/index.php/users/edit" title=""&gt;
              &lt;img src="/activities/app/webroot/img/pencil.jpg" alt="Edit" border="0" width="25"&gt;&lt;/a&gt;
      &lt;/td&gt;
      &lt;td&gt;
          &lt;img src="/activities/app/webroot/img/trashcan.jpg" alt="Delete" border="0" width="25"&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>