[pmwiki-users] Execute & render markup from a php function

Petko Yotov 5ko at free.fr
Wed Apr 2 11:59:43 CDT 2008


Stéphane Heckel wrote:
> I'm looking for a function to execute & render markup.
> ie : I would like to run {(plist groups=* -Site*.* sep=\n)}and get the 
> result in a variable, ..
...
> $mymarkup= '{(plist groups=* -Site*.* sep=\n)}';
> 
> $page['text'] =ExecuteMarkup($mymarkup);

Try MarkupToHTML():

   $renderedmarkup = MarkupToHTML($pagename, $mymarkup);

See also http://pmwiki.org/wiki/PmWiki/Functions .

Thanks,
Petko



More information about the pmwiki-users mailing list