Can anyone provide either a method of using the following code that doesn't result in HTML special characters being used in place of the single quotes, or an alternative way to produce the intended result?
<?php echo $this->Html->link(
'View',
$row['view'],
$options = array(
'onMouseOver'=>'setHelp(\''.$row['id'].'\')'
)
);
?>
The result looks like:
<li>
<a href="--url--" onMouseOver="setHelp('--js_param--')">
</li>
Clearly I am doing this wrong. But the Cake API seems to suggest that HtmlHelper's link() method is the go-to for javascript-ready links. Help?