Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample code in synopsis does not reflect how module works #21

Open
sdondley opened this issue Jul 29, 2020 · 0 comments
Open

Sample code in synopsis does not reflect how module works #21

sdondley opened this issue Jul 29, 2020 · 0 comments

Comments

@sdondley
Copy link

The synopsis has this code:

my $scrubber = HTML::Scrubber->new( allow => [ qw[ p b i u hr br ] ] );
print $scrubber->scrub('<p><b>bold</b> <em>missing</em></p>');
# output is: <p><b>bold</b> </p>

However, the output still contains the missing text contrary to the comment.

Any modules out there that will remove the tag as well as the content?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant