t/tags.t: Test of automatic escaping of user data
authorJakub Narebski <jnareb@gmail.com>
Fri, 11 Dec 2009 01:54:52 +0000 (02:54 +0100)
committerTomas Doran <bobtfish@bobtfish.net>
Fri, 11 Dec 2009 09:36:30 +0000 (09:36 +0000)
commitdc7d4cf04a89866bfc6fd8a3db588c52362c83c1
treecd65c452941cfce375f0e8f18a2091a3fe699623
parent9935bd6c7784067280343c2874336e3ca7c82000
t/tags.t: Test of automatic escaping of user data

Test that user data passed to XML::Tags::to_xml_string is automatically escaped
(to protect against cross-side scripting attacks), and that mechanism to turned
automatic off escaping works.

This test can also serve as example on how to turn off autoescaping of user
data.

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
t/tags.t