The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
use strict;
use warnings;

use Test::More;

use XML::XSS;

my $xss = XML::XSS->new;

$xss->set( doc => { content => xsst <<'END', } );
\<%= 'stuff' %>
END

is $xss->render('<doc>foo</doc>'), "\\stuff\n", 'final slash';

done_testing;