#!/usr/bin/perl use lib ('../lib', 'lib'); use Test::More 'no_plan'; use strict; use warnings; use MKDoc::XML::Tagger::Preserve; use MKDoc::XML::Tagger; { my $text = MKDoc::XML::Tagger->process_data ( "

stuff

", { _expr => 'stuff', _tag => 'a', href => 'http://example.com/foo.cgi?a=b&c=d' } ); like ($text, qr|

stuff

|, '& double escaped'); }; { my $text = MKDoc::XML::Tagger->process_data ( "

stuff

", { _expr => 'stuff', _tag => 'foo', bar => '' } ); like ($text, qr|

stuff

|, '<> double escaped'); }; { my $text = MKDoc::XML::Tagger->process_data ( "

stuff

", { _expr => 'stuff', _tag => 'foo', bar => '"hello world"' } ); like ($text, qr|

stuff

|, '" double escaped'); }; 1; __END__