1XML::Feed::Content(3) User Contributed Perl DocumentationXML::Feed::Content(3)
2
3
4
6 XML::Feed::Content - Wrapper for content objects
7
9 my $content = $entry->content;
10 print $content->body;
11
13 XML::Feed::Content represents a content object in an XML::Feed::Entry
14 entry in a syndication feed. This could be a <description> element in
15 an RSS feed, a <content> element in an Atom feed, etc. In other words,
16 any element where knowing both the actual data and the type of data is
17 useful.
18
20 wrap
21 Take params and turn them into a XML::Feed::Content object.
22
23 new
24 A synonym for wrap.
25
26 $content->body
27 The actual data.
28
29 $content->type
30 The MIME type of the content in body.
31
32 This is really only useful in Atom feeds, because RSS feeds do not
33 specify the type of content included in an entry. In RSS feeds,
34 generally the MIME type defaults to text/html.
35
36 $content->base
37 The url base of the content.
38
40 Please see the XML::Feed manpage for author, copyright, and license
41 information.
42
43
44
45perl v5.32.0 2020-07-28 XML::Feed::Content(3)