consistent documentation for entities
[catagits/DOM-Tiny.git] / lib / DOM / Tiny / Entities.pm
index c94982a..54752f8 100644 (file)
@@ -53,15 +53,15 @@ sub _decode {
 
 =head1 NAME
 
-DOM::Tiny::Entities - Encode or decode HTML entities in strings
+DOM::Tiny::Entities - Escape or unescape HTML entities in strings
 
 =head1 SYNOPSIS
 
   use DOM::Tiny::Entities qw(html_escape html_unescape);
   
   my $str = 'foo & bar';
-  $str = html_escape $str; # "foo & bar"
   $str = html_unescape $str; # "foo & bar"
+  $str = html_escape $str; # "foo & bar"
 
 =head1 DESCRIPTION