Test::DoubleEncodedEntities - check for double encoded entities
use Test::More tests => 1; use Test::DoubleEncodedEntities; ok_dee('<html><body>&eacute;</body></html>', "ent test");
This testing module huristically checks for double encoded HTML entities in your string.
This module automatically exports the following function:
- ok_dee($string, $test_description)
This module knows about all the entities defined in the HTML5 working draft and numerical entities.
This module only checks the body text; Entities in attributes are ignored as often you may want to double encoded entities on purpose in things like URLs.
Bugs (and requests for new features) can be reported though the CPAN RT system: http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-DoubleEncodedEntities
Alternatively, you can simply fork this project on github and send me pull requests. Please see http://github.com/2shortplanks/Test-DoubleEncodedEntities
Written by Mark Fowler email@example.com
Copyright Mark Fowler 2004, 2011, 2012.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.