[pmwiki-users] Outputting HTML code in a cookbook module

Patrick R. Michaud pmichaud at pobox.com
Mon Oct 16 11:31:56 CDT 2006


On Mon, Oct 16, 2006 at 12:04:29PM +0200, Wouter Groeneveld wrote:
>    Hello,
> 
>    I would like to output HTML code instead of the pmWiki markup in my own
>    cookbook recipe - a file placed in the /cookbook subdir.
> 
>    Function aFunct($pagename) {
> 
>     $out = "<form><select>...";
>     return $out;
>    }
> 
>    This causes pmWiki to set <pre> and </pre> tags between the $out text.
>    Result: my form placing is screwed up. How can I output HTML - without
>    pmwiki's anti-HTML processing functions? I honestly have no idea.
>    Normally, $out contains something like "!! hello \\ newline" - the default
>    markup, but I'd like to output a form combobox without the nasty <pre>
>    tags.

Make sure your output doesn't have any leading spaces.

If you want to just output the raw HTML, such that PmWiki won't process
it any further, then use Keep(...) on the returned value.

Pm




More information about the pmwiki-users mailing list