HTML-Strip-2.12/000755 000765 000024 00000000000 14406115216 013375 5ustar00alexstaff000000 000000 HTML-Strip-2.12/Changes000644 000765 000024 00000012000 14406115161 014660 0ustar00alexstaff000000 000000 Revision history for Perl extension HTML::Strip. 2.12 Mon 20 Mar 2023 19:17:06 EET - update META.yml to version 2 spec (patch contributed by Boyd Duffee) - fixes test failure in t/420_pod_coverage.t with Test::Pod::Coverage installed 2.11 Tue 14 Mar 2023 13:18:29 EET - fix public VSC info for MetaCPAN (RT#115740) - add option to emit newlines for
and

tags (patch by Ryan Schmidt, contributed by Jason McIntosh) - installation / complilation bug on macOS (RT#134342) (patch contributed by Lucas Kanashiro) - spelling correction (RT#115740) (patch contributed by Florian Weimer) - improved C99 compatibility with utf8_char_width prototype (RT#146734) (contributed by Gabor Szabo) - htmlstrip command-line tool 2.10 Fri Apr 22 12:16:17 BST 2016 - fix to building on Windows / MSVC (RT#102389) - fix duplicate DESTROY in Strip(.pm,.xs) warning (RT#104379, Debian bug #785032) 2.09 Mon Jan 5 16:51:17 GMT 2015 - fixed latin1 support, added test case for it (RT#100969) 2.08 Tue Dec 9 15:02:02 GMT 2014 - replaced html entities in russian.html (read by utf8 test), as the test should not fail due to problems with HTML::Entities 2.07 Thu Dec 4 14:07:03 GMT 2014 - improvements for Kwalitee 2.06 Thu Dec 4 12:59:54 GMT 2014 - strip_spaces in utf8 test was using perl v5.14+ features - reading of DATA in utf8 test should be native utf8 not use Encode, which mangles it on some platforms 2.05 Wed Dec 3 16:05:13 GMT 2014 - fix to bug in t/300_utf8.t causing whitespace not to be stripped 2.04 Tue Nov 25 11:14:08 GMT 2014 - many cpan tester failures due to witespace in utf8 test, main test done with whitespace stripped, todo test as before 2.03 Mon Nov 24 13:48:44 GMT 2014 - removed trailing libicu deps - perl minimum version to 5.8 (needed for unicode support) - cleaned up test suite - version bump in META.YML (RT#100457) - 'use feature' breaking perl 5.8, removed (RT#100453) - added Test::Exception to build_requires 2.02 Thu Nov 20 11:21:35 GMT 2014 - removed dependency on libicu-dev, which isn't as universal as expected and was causing a bunch of cpan tester failures 2.01 Wed Nov 19 10:48:04 GMT 2014 (patch contributed by Michi Steiner) - clean buffer needs an extra char when emit_spaces=1 and the input has nothing to be removed (RT#41035) 2.00 Tue Nov 18 16:14:42 GMT 2014 - utf8 support via libicu (RT#42834) - smoke test and utf8 test, tests ordered 1.10 Tue Sep 30 14:34:47 UTC 2014 - fix for RT#99207 (script mathematical symbol bug) 1.09 Tue Sep 30 10:39:47 UTC 2014 - offbyone.t disabled under Windows (RT#99219) 1.08 Fri Sep 26 15:02:37 UTC 2014 - system perl used in offbyone.t (RT#99151) 1.07 Tue Sep 23 14:44:08 UTC 2014 - fix to bug RT#19036 - tags not replaced with spaces when only a single character is between the tags - fix to bug RT#35345 - mathematical conparisons within \nEnd\n" ); is( $o2, "\nEnd\n" ); }; subtest "reset on" => sub { plan tests => 2; my $hs = HTML::Strip->new( auto_reset => 1 ); # auto_reset on my $o = $hs->parse( "\nTitle\n\nEnd\n" ); is( $o2, "c+d\n\nEnd\n" ); }; HTML-Strip-2.12/t/410_pod.t000644 000765 000024 00000000201 14404041264 015163 0ustar00alexstaff000000 000000 use Test::More; eval "use Test::Pod 1.00"; plan skip_all => "Test::Pod 1.00 required for testing POD" if $@; all_pod_files_ok(); HTML-Strip-2.12/t/240_striptags.t000644 000765 000024 00000001630 14404041264 016431 0ustar00alexstaff000000 000000 use Test::More tests => 2; use HTML::Strip; subtest "set_striptags( \@ARRAY )" => sub { plan tests => 2; my $hs = HTML::Strip->new; $hs->set_striptags( [ 'foo' ] ); is( $hs->parse( 'bar' ), 'foo bar', 'set_striptags redefinition works' ); $hs->eof; is( $hs->parse( 'foobar' ), 'bar', 'set_striptags redefinition works' ); $hs->eof; }; subtest "set_striptags( LIST )" => sub { plan tests => 3; my @striptags = qw(baz quux); my $hs = HTML::Strip->new; $hs->set_striptags( @striptags ); is( $hs->parse( 'fumblebarfoo' ), 'bar', 'stripping user-defined tags ok' ); $hs->eof; is( $hs->parse( 'fumblefoobar' ), 'bar', 'stripping user-defined tags ok' ); $hs->eof; is( $hs->parse( ' baz ' ), ' baz ', 'stripping user-defined tags ok' ); $hs->eof; }; HTML-Strip-2.12/t/200_comment.t000644 000765 000024 00000002123 14404041264 016045 0ustar00alexstaff000000 000000 # http://rt.cpan.org/Public/Bug/Display.html?id=32355 use Test::More tests => 2; use HTML::Strip; subtest declarations => sub { plan tests => 1; my $hs = HTML::Strip->new(); is( $hs->parse( q{Text} ), "Text", 'decls are stripped' ); $hs->eof; }; subtest comments => sub { plan tests => 5; my $hs = HTML::Strip->new(); is( $hs->parse( q{Hello World!} ), "Hello World!", "comments are stripped" ); $hs->eof; is( $hs->parse( q{Hello World!} ), "Hello World!", q{comments may contain '} ); $hs->eof; is( $hs->parse( q{Hello World!} ), "Hello World!", q{comments may contain "} ); $hs->eof; is( $hs->parse( q{