From: Loyd G. <lo...@bl...> - 2002-11-19 03:21:14
|
I just installed PHPWiki v1.3.3, and am very pleased with it so far. I = tried searching the archives, but they appear to be down at the moment. I'm trying to write a simple plugin for MOTD. I was under the impression = that HTML code I used in the plugin was not translated. For instance, if I use= this sample code in my plugin: function run($dbi, $argstr, $request) { // No arguments at this time // extract($this->getArgs($argstr, $request)); $html =3D "One moon shows in every pool;\nIn every pool, the one moon."; $html =3D ereg_replace("\n","<br />",$html); return $html; } I expected to see the following in the wiki: One moon shows in every pool; In every pool, the one moon. However, I get this: One moon shows in every pool;<br />In every pool, the one moon. The source for which looks like this: One moon shows in every pool;<br />In every pool, the one moon. Even replacing the HTML breaks with wiki line breaks (%%%) did not work. = (I thought wiki html transformation might still occur.) The note from the HelloWorld plugin states // Any text that is returned will not be further transformed, // so use html where necessary. This does not appear to be true. Is there a way to get line breaks from a plugin's text? Thanks, Loyd --=20 "Why, you can even hear yourself think." --Hobbes "This is making me nervous. Let's go in." --Calvin lo...@bl... ICQ#504581 http://www.blackrobes.net/ |