| 
 
 NAMEHTML::MobileConverter - HTML Converter for mobile agent SYNOPSIS  use HTML::MobileConverter;
  my $baseuri = 'http://example.com/';
  my $c = HTML::MobileConverter->new(baseuri => $baseuri);
  my $html =<<END;
  <html><body>title<hr><a href="./my">my link</a></body></html>
  END
  print $c->convert($html); # get html with abs-uri.
  
  use URI;
  $html = <<END;
  <html><body>
  title<hr>
  <a href="./my">my link</a>
  <iframe src="./my"></iframe>
  </body></html>
  END
  $c = HTML::MobileConverter->new(
    baseuri => $baseuri,
    hrefhandler => sub {
      my $href = shift;
      return URI->new_abs($href, 'http://example.com/');
    },
  );
  print $c->convert($html); # get html without iframe.
  
  # create a proxy
  my $q = CGI->new;
  my $html = $c->convert(LWP::Simple:get($q->param('uri')));
  print Jcode->new($html)->sjis;
DESCRIPTIONHTML::MobileConverter parses HTML and returns new HTML for mobile agent (mainly for DoCoMo i-mode). If the original HTML doesn't contain so many pc tags, it returns the original HTML strings with absolute uri (href,src...). If the original was guessed as a content for PC, it returns new HTML for mobile agent. METHODSHere are common methods of HTML::MobileConverter. 
 AUTHORJunya Kondo, <jkondo@hatena.ne.jp> COPYRIGHT AND LICENSECopyright (C) 2005 by Junya Kondo This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSOHTML::Parser http://www.nttdocomo.co.jp/p_s/imode/tag/lineup.html (Japanese) 
 
  |