[pmwiki-users] RSS and <content> tags
Patrick R. Michaud
pmichaud at pobox.com
Wed Jun 21 11:35:36 CDT 2006
On Tue, Jun 20, 2006 at 04:20:06PM -0500, Jon Haupt wrote:
> >IIRC, it is possible to set $FeedFmt to call a function -- i.e.,
> > $FeedFmt['rss']['item']['content'] = 'MyContent';
> >which then calls the MyContent() function to determine what
> >should be generated for the <content> tag. This function could
> >then grab the page markup source, convert it to HTML, etc.
> So anyway, I don't mind messing with this some
> more, but can you offer a hint of what scripts I might be able to look
> at that do something similar (i.e. convert markup to plain html and
> return that but do nothing else)?
The function to convert markup to HTML is indeed MarkupToHTML --
simply call it with the markup text to be converted:
$html = MarkupToHTML($pagename, $text);
There are a few options available for special cases, but that's
the basic function (and how PmWiki uses it).
More information about the pmwiki-users