Skip to content

Commit

Permalink
Typo fix by Bob Dalgleish <Bob_Dalgleish@Develcon.com>
Browse files Browse the repository at this point in the history
  • Loading branch information
aas committed Jun 9, 1996
1 parent 3d86f12 commit c1abfc7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
20 changes: 10 additions & 10 deletions Parser.pm
@@ -1,6 +1,6 @@
package HTML::Parser;

# $Id: Parser.pm,v 2.1 1996/05/26 10:25:34 aas Exp $
# $Id: Parser.pm,v 2.2 1996/06/09 14:50:00 aas Exp $

=head1 NAME
Expand All @@ -23,7 +23,7 @@ HTML::Parser - SGML parser class
=head1 DESCRIPTION
The C<HTML::Parser> will tokenize an HTML document when the
The C<HTML::Parser> will tokenize a HTML document when the
$p->parse() method is called. The document to parse can be supplied
in arbitrary chunks. Call $p->parse(undef) at the end of the document
to flush any remaining text. The return value from parse() is a
Expand All @@ -33,7 +33,7 @@ The $p->parse_file() method can be called to parse text from a file.
The argument can be a filename or an already opened file handle. The
return value from parse_file() is a reference to the parser object.
In order to make the parser do anything interesting you must make a
In order to make the parser do anything interesting, you must make a
subclass where you override one or more of the following methods as
appropriate:
Expand All @@ -58,12 +58,12 @@ Entities found in the attribute values are already expanded.
=item $self->end($tag)
This method is called when a end tag has been recognized. The
This method is called when an end tag has been recognized. The
argument is the lower case tag name.
=item $self->text($text)
This method is called as plain text in the document is recognized.
This method is called when plain text in the document is recognized.
The text is passed on unmodified and might contain multiple lines.
Note that for efficiency reasons entities in the text are B<not>
expanded. You should call HTML::Entities::decode($text) before you
Expand All @@ -72,17 +72,17 @@ process the text any further.
=item $self->comment($comment)
This method is called as comments are recognized. The leading and
trailing "--" sequences has been stripped off the comment text.
trailing "--" sequences have been stripped off the comment text.
=back
The default implementation of these methods does nothing, i.e. the
The default implementation of these methods does nothing, I<i.e.,> the
tokens are just ignored.
There is really nothing in the basic parser that is HTML specific, so
it is likely that the parser can parse many kinds of SGML documents,
but SGML have many obscure features (not implemented by this module)
that prevents us from renaming this module as C<SGML::Parse>.
but SGML has many obscure features (not implemented by this module)
that prevent us from renaming this module as C<SGML::Parse>.
=head1 SEE ALSO
Expand All @@ -106,7 +106,7 @@ use strict;

use HTML::Entities ();
use vars qw($VERSION);
$VERSION = sprintf("%d.%02d", q$Revision: 2.1 $ =~ /(\d+)\.(\d+)/);
$VERSION = sprintf("%d.%02d", q$Revision: 2.2 $ =~ /(\d+)\.(\d+)/);


sub new
Expand Down
10 changes: 5 additions & 5 deletions lib/HTML/Entities.pm
@@ -1,10 +1,10 @@
package HTML::Entities;

# $Id: Entities.pm,v 1.6 1996/05/26 10:31:40 aas Exp $
# $Id: Entities.pm,v 1.7 1996/06/09 14:49:57 aas Exp $

=head1 NAME
decode - Expand HTML entites in a string
decode - Expand HTML entities in a string
encode - Encode chars in a string using HTML entities
Expand All @@ -18,10 +18,10 @@ encode - Encode chars in a string using HTML entities
=head1 DESCRIPTION
The decode_entities() routine replace valid HTML entities found
The decode_entities() routine replaces valid HTML entities found
in the string with the corresponding ISO-8859/1 character.
The encode_entities() routine replace the characters specified by the
The encode_entities() routine replaces the characters specified by the
second argument with their entity representation. The default set of
characters to expand are control chars, high-bit chars and the '<',
'&', '>' and '"' character.
Expand Down Expand Up @@ -60,7 +60,7 @@ require Exporter;
@EXPORT = qw(encode_entities decode_entities);
@EXPORT_OK = qw(%entity2char %char2entity);

$VERSION = sprintf("%d.%02d", q$Revision: 1.6 $ =~ /(\d+)\.(\d+)/);
$VERSION = sprintf("%d.%02d", q$Revision: 1.7 $ =~ /(\d+)\.(\d+)/);
sub Version { $VERSION; }


Expand Down

0 comments on commit c1abfc7

Please sign in to comment.