use strict; use warnings; use utf8; use Test::More; BEGIN { $ENV{PERL_ONLY} = 1; } use HTML::Escape; ok(!HTML::Escape::USE_XS); is(escape_html("<^o^>"), '<^o^>'); is(escape_html("'"), "'"); is(escape_html("\0>"), "\0>"); is(escape_html("`"), "`"); is(escape_html("{}"), "{}"); done_testing;