[pmwiki-users] %id=some-label% markup

John Rankin john.rankin at affinity.co.nz
Sun Jun 25 22:19:54 CDT 2006


Could somebody explain a wikistyles feature please.

It appears that %id=some-label% gets turned into id="some_label" 
on output. Is there a reason for this? AFAIK hyphens are allowed 
in id attribute values.

The wikistyles.php code does this deliberately:

... if ($k=='id') $id = preg_replace('/\W/','_',$v);
-- 
JR
--
John Rankin







More information about the pmwiki-users mailing list