'<tag>Hi <bob></tag>',
);
+is(
+ do_tt('<tag>[% foo | no_escape %]</tag>', { foo => 'Hi <bob>' }),
+ '<tag>Hi <bob></tag>',
+);
+
+# Check we aren't nailed by https://rt.perl.org/rt3/Ticket/Display.html?id=49594
+
+is(
+ do_tt('<foo>"$bar"</foo>'."\n"),
+ '<foo>"$bar"</foo>'."\n"
+);
+
+is(
+ do_tt(
+ '[% FOREACH item IN items %][% item %][% END %]',
+ { items => [ '<script>alert("lalala")</script>', '-> & so "on" <-' ] }
+ ),
+ '<script>alert("lalala")</script>'
+ .'-> & so "on" <-'
+);
+
+is( do_tt('"0"', {}), '"0"' );
+
done_testing;