diff options
Diffstat (limited to 'lib/PublicInbox/View.pm')
-rw-r--r-- | lib/PublicInbox/View.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index aea0dd1c..4ac28346 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -17,6 +17,13 @@ sub as_html { "</pre>\n"; } +sub as_feed_entry { + my ($class, $mime, $full_pfx) = @_; + + "<pre>" . multipart_text_as_html($mime, $full_pfx) . "</pre>"; +} + + # only private functions below. sub multipart_text_as_html { |