How can I add a class to #markup output? I'm using this code to add a cancel button to my form.  The link is generated through #markup:

  $form['actions']['cancel'] = array(
    '#markup' =&gt; l(t('Cancel'), $destination),
    '#weight' =&gt; 20,
  );


I'd like to add a class, cancel, to the link.  I tried adding this line:

'#attributes' =&gt; array('class' =&gt; array('cancel')),


but the class is not added.  I'm guessing because #attributes cannot modify #markup?  How can I add the class in this case?
You can do this...

$form['actions']['cancel'] = array(
    '#markup' =&gt; l(t('Cancel'), $destination, array('attributes' =&gt; array('class' =&gt; array('cancel')))),
    '#weight' =&gt; 20,
  );


The third argument on the 'link' function is for attributes and such...

l($text, $path, array $options = array())


Documentation: http://api.drupal.org/api/drupal/includes%21common.inc/function/l/7