DOKK / manpages / debian 12 / libxml-feed-perl / XML::Feed::Content.3pm.en
XML::Feed::Content(3pm) User Contributed Perl Documentation XML::Feed::Content(3pm)

XML::Feed::Content - Wrapper for content objects

    my $content = $entry->content;
    print $content->body;

XML::Feed::Content represents a content object in an XML::Feed::Entry entry in a syndication feed. This could be a <description> element in an RSS feed, a <content> element in an Atom feed, etc. In other words, any element where knowing both the actual data and the type of data is useful.

Take params and turn them into a XML::Feed::Content object.

A synonym for wrap.

The actual data.

The MIME type of the content in body.

This is really only useful in Atom feeds, because RSS feeds do not specify the type of content included in an entry. In RSS feeds, generally the MIME type defaults to text/html.

The url base of the content.

Please see the XML::Feed manpage for author, copyright, and license information.

2021-09-01 perl v5.32.1