Add html markup to Drupal Webform I want to extend the simple text the Webform module allows for radio buttons to include HTML markup.

The Drupal Options Markup module purports to add markup to the text for radio buttons. It does, but it also seems to be very buggy and causes missing index errors in the Webform module. 

Hand coding seems to be a better option. Digging into hook_form_alter, I can see where the array is built. 

Here is the question: How do add markup to the plain text of the #options array. From the forms api reference, the t function is used. Can I insert HTML into that? 

   '#title' =&gt; t('Selected'),
   '#options' =&gt; array(
      0 =&gt; t('No'),
     1 =&gt; t('Yes'),


The result I want can be seen in the Illustration from webform options markup.
You can't add html to the t() function. 
A quick (and maybe dirty way) is to just do something like this:

   '#title' =&gt; t('Selected'),
   '#options' =&gt; array(
      0 =&gt; t('No') . '&lt;span class="markup"&gt;Markup&lt;/span&gt;',
     1 =&gt; t('Yes') . '&lt;ul class="markup"&gt;&lt;li&gt;Markup&lt;/li&gt;&lt;/ul&gt;',