Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 942940d712
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (14 sloc) 0.391 kb
use v6;
use XML::Writer;
use Test;
plan *;
ok XML::Writer.serialize('a' => [ :b<c>, '<foo>' ]) !~~ / '<foo>' /,
'plain text is escaped (<>)';
given XML::Writer.serialize('a' => [ :b<c>, '&' ]) {
ok $_ ~~ / '&amp;' /,
'plain text is escaped (&)'
or diag "XML: $_";
}
ok XML::Writer.serialize('a' => [ :b<c>, 'a"b' ]) !~~ / 'a"b' /,
'plain text is escaped (")';
done;
Jump to Line
Something went wrong with that request. Please try again.