Changeset 2353

Show
Ignore:
Timestamp:
09/21/07 11:35:54
Author:
miyagawa
Message:

use as_XML instead of as_HTML in RAW

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Web-Scraper/trunk/lib/Web/Scraper.pm

    r2352 r2353  
    168168            return HTML::Entities::encode($node->as_XML, q("'<>&)); 
    169169        } 
    170         my $html = $node->as_HTML(q("'<>&), undef, {})
     170        my $html = $node->as_XML
    171171        $html =~ s!^<.*?>!!; 
    172172        $html =~ s!\s*</\w+>\n*$!!; 
  • Web-Scraper/trunk/t/12_html.t

    r2336 r2353  
    5454--- expected 
    5555<p>foo bar</p><p>bar</p> 
     56 
     57=== non-ascii 
     58--- html 
     59<p id="foo">テスト</p> 
     60--- selector 
     61#foo 
     62--- expected 
     63テスト