Test::DoubleEncodedEntities - check for double encoded entities


Test-DoubleEncodedEntities documentation  | view source Contained in the Test-DoubleEncodedEntities distribution.

Index


NAME

Top

Test::DoubleEncodedEntities - check for double encoded entities

SYNOPSIS

Top

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

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

DESCRIPTION

Top

This is a testing module that checks for double encoded entities in your string. It exports one function ok_dee that does the testing. You should pass it the html you want to test and optionally the name for the test. It will run the test producing Test::Harness compatible output, and will return 1 on a pass and 0 on a failure.

Note that this 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.

This module knows about all the entities defined in the HTML 4.0 specification, and numerical entities.

AUTHOR

Top

  Copyright Mark Fowler 2004.  All rights reserved.

  This program is free software; you can redistribute it
  and/or modify it under the same terms as Perl itself.

SEE ALSO

Top

Test::DoubleEncodedEntities::Entities


Test-DoubleEncodedEntities documentation  | view source Contained in the Test-DoubleEncodedEntities distribution.