Hi All,

I'm writing a recipe in which I need to display a mailto: link with  
multiple addresses and a subject line. My test code is as follows:

-------------------
Markup('carpool', '<img', "/\\(:carpool:\\)/e", "test()");

function test() {
                
        $out = '';
        
        $out = '<a href="mailto:[EMAIL PROTECTED],[EMAIL PROTECTED]">Email  
me!</a>';
        $out .= '<br/><br/>';
        $out .= '[[mailto:[EMAIL PROTECTED],[EMAIL PROTECTED] | Email  
me!]]';
        $out .= '<br/><br/>';
        $out .= '[[mailto:[EMAIL PROTECTED],[EMAIL PROTECTED]';
        $out .= '<br/><br/>';
        $out .= 'mailto:[EMAIL PROTECTED],[EMAIL PROTECTED]';
        $out .= '<br/><br/>';
        $out .= 'mailto:[EMAIL PROTECTED],[EMAIL PROTECTED]';

  return $out;
}
--------------------

Only the last two lines produce working links, however there is no  
link text. Also, from the way lines 1 and 2 fail, it appears that the  
mailto: is parsed by the app, but the double brackets are not--they  
actually appear on the rendered page.

Is there a way to change the order of recipe rendering so that the  
brackets get parsed into a link? If not, how can one create a link  
with link text from a recipe?

Thanks,

Dave





_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to