[pmwiki-users] Pu

DaveG pmwiki at solidgone.com
Mon Jul 28 22:03:36 CDT 2008

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',
    "Keep('<div class=\'country\' 

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

More information about the pmwiki-users mailing list