NAME

Test::DoubleEncodedEntities - check for double encoded entities

SYNOPSIS

use Test::More tests => 1;
use Test::DoubleEncodedEntities;

ok_dee('<html><body>&amp;eacute;</body></html>', "ent test");

DESCRIPTION

This testing module huristically checks for double encoded HTML entities in your string.

Functions

This module automatically exports the following function:

ok_dee($string)
ok_dee($string, $test_description)

This module knows about all the entities defined in the HTML5 working draft and numerical entities.

BUGS

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

AUTHOR

Written by Mark Fowler mark@twoshortplanks.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.

SEE ALSO

Test::DoubleEncodedEntities::Entities