GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Mail::SpamAssassin::Pyzor::Digest::StripHtml(3) User Contributed Perl Documentation Mail::SpamAssassin::Pyzor::Digest::StripHtml(3)

Mail::SpamAssassin::Pyzor::Digest::StripHtml - Pyzor HTML-stripping module

    my $stripped = Mail::SpamAssassin::Pyzor::Digest::StripHtml::strip($html);

This module attempts to duplicate pyzor's HTML-stripping logic.

This library cannot achieve 100%, bug-for-bug parity with pyzor because to do so would require duplicating Python's own HTML parsing library. Since that library's output has changed over time, and those changes in turn affect pyzor, it's literally impossible to arrive at a single, fully-compatible reimplementation.

That said, all known divergences between pyzor and this library involve invalid HTML as input.

Please open bug reports for any divergences you identify, particularly if the input is valid HTML.

Give it some HTML, and it'll give back the stripped text.

In general, the stripping consists of removing tags as well as "<script>" and "<style>" elements; however, it also removes HTML entities.

This tries very hard to duplicate pyzor's behavior with invalid HTML.

2025-04-29 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.