Text_Wiki Problems....

From: Date: Wed, 18 Aug 2004 17:19:54 +0000
Subject: Text_Wiki Problems....
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-32754@lists.php.net to get a copy of this message
Hey PEARs, Paul I'm trying to use Text_Wiki in my templating engine, and I'm having issues: <?php require_once 'Text/Wiki.php'; $wiki =& new Text_Wiki; $wiki_text = <<<WIKI
            + Header Level 1
            Here's a paragraph and a link to <a href="somewhere">foo</a>
            * list item 1
            * list item 2
WIKI; $xhtml = $wiki->transform($wiki_text, 'Xhtml'); echo $xhtml; ?> outputs: <p>+ Header Level 1<br />
    <br />
            Here's a paragraph and a link to &lt;a href=&quot;somewhere&quot;&gt;foo&lt;/a&gt;<br />
    <br />
            * list item 1<br />
            * list item 2</p>
(please note that my template engine takes care of the <a> element) As you can see, all its putting in paragraphs and new lines. I have tried this on PHP 4.3.6 and 5.0.1, same result. What am I doing wrong!? - Davey

« previous php.pear.dev (#32754) next »