Mark Overmeer > HTML-FromMail > Html::FromMail::Default::HTMLifiers

Download:
HTML-FromMail-0.11.tar.gz

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source  

NAME ^

Html::FromMail::Default::HTMLifiers - convert data type to HTML

SYNOPSIS ^

DESCRIPTION ^

FUNCTIONS ^

htmlifyHtml(PAGE, MESSAGE, PART, ARGS)

THIS FUNCTION IS NOT PRESENT, for the following reason. What should happen here? The message part/multipart contains an html message, but that interferes with the HTML of the template.

One solution could be to strip the header, and the html and body tags. However, what about style sheet info? That may very well interfere with the template's style sheet. And consider erroneous HTML?

So, until some nice solution is presented, HTML will not be inlined. As alternative, your production software may differentiate between html messages and non-html messages. Produce the page according to the template, and then simply link to the produced HTML for the user. However, I don't know whether that is smart....

htmlifyText(PAGE, MESSAGE, PART, ARGS)

Convert plain text into HTML using HTML::FromText. Configuration can be supplied as show in the example. The defaults are set to mode pre with urls, email, bold, and underline.

Example: configuring text conversion

  my $f = HTML::FromMail->new
  ( settings =>
      { message        => { disposition => \&my_disposer }
      , HTML::FromText => { block_code  => 0 }
      }
  );

SEE ALSO ^

This module is part of HTML-FromMail distribution version 0.11, built on June 08, 2007. Website: http://perl.overmeer.net/html-from-mail/

LICENSE ^

Copyrights 2003,2004,2007 by Mark Overmeer. For other contributors see ChangeLog.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://www.perl.com/perl/misc/Artistic.html

syntax highlighting: