Skip Menu |

This queue is for tickets about the HTML-Strip CPAN distribution.

Report information
The Basics
Id: 3737
Status: resolved
Priority: 0/
Queue: HTML-Strip

People
Owner: Nobody in particular
Requestors: spurkis [...] epn.nu
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.01
Fixed in: 1.02



Subject: [BUG] HTML::Strip doesn't handle entities
Hi Alex, HTML::Strip looks good, but one thing that is preventing me from using it is that it doesn't handle HTML entities (  " and the like). Perhaps it should decode them before returning $clean_text to the user? hth, -Steve
Apologies for the delay in response, I've been without net access for a while. As to your problem, this is mentioned in the docs: HTML Entities HTML::Strip attempts no decoding of HTML entities. Use the imaginatively-named HTML::Entities (specifically, the decode_entities() method) for this purpose. I'm somewhat loathe to make HTML::Strip depend on HTML::Entities. I may at some point implement this using dynamic dependencies, however (i.e. allow an option to $hs->new() which sets it to automatically decode entities, provided you have HTML::Entities installed). For now, I'll add a specific example of how to use them together to the docs.
This feature was added in version 1.02.
On Wed Apr 14 12:34:38 2004, KILINRAX wrote: Show quoted text
> This feature was added in version 1.02.