Dominique Faure wrote:
> You should perhaps use Keep(...) to prevent any further Markup processing:
> 
> Markup('^Country:', 'fulltext',
>        '/^Country\\s+([a-zA-Z][a-zA-Z]):(.*?)<<>>/isme',
>        "'<:block>'.Keep('<div class=\'country\'
> style=\'background-image:
> url(\"'.\$GLOBALS['PubDirUrl'].'/dropdown/flags/$1.png\")\'>').'$2'.Keep('</div>')");
> 
That gets me very close. I had to make a minor change to read:
Markup('^Country:', 'fulltext',
        '/^Country\\s+([a-zA-Z][a-zA-Z]):(.*?)&gt;&gt;&lt;&lt;/isme',
    "Keep('<div class=\'country\' 
style=\'background-image:url(\"'.\$GLOBALS['PubDirUrl'].'/dropdown/flags/\$1.png\")\'>$2').
 
'</div>'"
);

1] What does the first '<:block>' do? Didn't appear to do anything.

2] Quotes within the $2 text now appear in the final output as \" rather 
than simply ". I've tried moving the $2 around to no avail. Any 
suggestions there?

  ~ ~ Dave

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

Reply via email to