[pmwiki-users] PmWiki in AJAX

Hans design5 at softflow.co.uk
Mon Feb 9 17:14:04 CST 2009

Monday, February 9, 2009, 10:31:35 PM, Etienne Convié wrote:

> 1) in $content I do not have an html output... How can I do to have the
> HTML translation of a $page['text']?

> 2) I would like to not have exit(); at the end and to continue the 
> process of the page, but if I don't do that, I have logically a warning
> 'Headers already sent...'. How can I do to output json_encode($toAJAX)
> in place of my *.tmpl file at the end of the process?

> In a simple-code I would like to do this:
> $content = toHTML('<!--PageText-->'); but it seems to be not possible

function MarkupToHTML should be your friend!
you could try

$text = $page['text'];
$content = MarkupToHTML($pagename, $text);


More information about the pmwiki-users mailing list