Skip to content

Commit

Permalink
Bumps version to 2.1.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
oalders committed Mar 9, 2013
1 parent 2a33023 commit 0285c10
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Revision history for HTML-Restrict

2.1.1 2013-03-08
- Updates Pod.

2.1.0 2013-03-02
- Allows attributes to be validated against regexes (perlpong).

Expand Down
13 changes: 7 additions & 6 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ NAME
HTML::Restrict - Strip unwanted HTML tags and attributes

VERSION
version 2.1.0
version 2.1.1

SYNOPSIS
use HTML::Restrict;
Expand All @@ -17,11 +17,12 @@ SYNOPSIS
# Now, a less restrictive example:
use HTML::Restrict;

my $hr = HTML::Restrict->new();
$hr->set_rules({
b => [],
img => [qw( src alt / )]
});
my $hr = HTML::Restrict->new(
rules => {
b => [],
img => [qw( src alt / )]
}
);

my $html = q[<body><b>hello</b> <img src="pic.jpg" alt="me" id="test" /></body>];
my $processed = $hr->process( $html );
Expand Down
2 changes: 1 addition & 1 deletion dist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ author = Olaf Alders <olaf@wundercounter.com>
license = Perl_5
copyright_holder = Olaf Alders
copyright_year = 2013
version = 2.1.0
version = 2.1.1
main_module = lib/HTML/Restrict.pm

[GatherDir]
Expand Down

0 comments on commit 0285c10

Please sign in to comment.