[pmwiki-users] Pu

DaveG pmwiki at solidgone.com
Mon Jul 28 17:49:56 CDT 2008


I'm trying to define a markup, part of which will be used to determine 
the path for an image styled background. However, this markup:
Markup('^Country:', 'fulltext',
	'/^Country\s+([a-zA-Z][a-zA-Z]):(.*?)>><</ism',
	'<div class="country" style="background-image: url(\''. 
$GLOBALS['PubDirUrl']. '/dropdown/flags/$1.png\');">$2</div>'
);


results in this HTML:
<div class='vspace'></div><div class="country" style="background-image: 
url('<img src='http://mr2wiki.com/pmwiki/pub/dropdown/flags/JP.png' 
alt='' title='' />');"> some text</div>

Notice the <img src=" in the middle of the background-image url.

I suspect PmWiki is seeing the http://....png and considers that to be 
an image.  Is there a way to prevent this?

  ~ ~ Dave



More information about the pmwiki-users mailing list