13 Jan 2012 19:55:12 UTC
- Distribution: Test-DoubleEncodedEntities
- Module version: 2.00
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (2)
- Testers (507 / 0 / 0)
- KwaliteeBus factor: 0
- 97.30% Coverage
- License: perl_5
- Perl: v5.6.0
- Activity24 month
- Download (75.56KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionMARKF Mark Fowler
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 firstname.lastname@example.org
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.
Module Install Instructions
To install Test::DoubleEncodedEntities, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Test::DoubleEncodedEntities
For more information on module installation, please visit the detailed CPAN module installation guide.