use strict; use warnings; use Test::More tests => 10; use HTML::ExtractContent::Util; # strip is(strip(""), ""); # empty is(strip(" \t\r\nfoo"), "foo"); # left is(strip("bar \t \r \n"), "bar"); # right is(strip(" \t\r hoge\t\t\r\n"), "hoge"); # both # strip_tags is(strip_tags("url: http://example.com/"), "url: http://example.com/"); is(strip_tags("
hoge foo.
\nbar tarao.
\nhoge foo.
\nbar tarao.
\nhoge foo.
\nbar tarao.
\nhoge foo.
\nbar tarao.
\n