perl-HTML-Strip-2.10-lp150.1.2 8 > ( A
A j A ? Z[ʘ37 vVlPaAZ'IS{ xxvAhrr
a37dcdc8102d4a5ae847db4c34a0893c280304d0 f09446b84dc559257623c37042490f274eeadcaa42bce6e4d0e4404da2c95e9d dP,2(b_@? Z[ʘ3$ `A)7 y2) mC?8ΐ-{ t > p = ? d ! T $ L R \
(
P
@ l
(
8
9
: F i G |
H
I
X Y \
] 0
^ b m c d e f l u
v w
x $
y L z d t x ~ C perl-HTML-Strip 2.10 lp150.1.2 Perl extension for stripping HTML markup from text This module simply strips HTML-like markup from text rapidly and brutally.
It could easily be used to strip XML or SGML markup instead; but as
removing HTML is a much more common problem, this module lives in the
HTML:: namespace.
It is written in XS, and thus about five times quicker than using regular
expressions for the same task.
It does _not_ do any syntax checking (if you want that, use HTML::Parser),
instead it merely applies the following rules:
* 1
Anything that looks like a tag, or group of tags will be replaced with a
single space character. Tags are considered to be anything that starts with
a '<' and ends with a '>'; with the caveat that a '>' character may appear
in either of the following without ending the tag:
* Quote
Quotes are considered to start with either a ''' or a '"' character, and
end with a matching character _not_ preceded by an even number or escaping
slashes (i.e. '\"' does not end the quote but '\\\\"' does).
* Comment
If the tag starts with an exclamation mark, it is assumed to be a
declaration or a comment. Within such tags, '>' characters do not end the
tag if they appear within pairs of double dashes (e.g. '' would be stripped completely). No parsing
for quotes is performed within comments, so for instance '' would be entirely stripped.
* 2
Anything the appears within what we term _strip tags_ is stripped as well.
By default, these tags are 'title', 'script', 'style' and 'applet'.
HTML::Strip maintains state between calls, so you can parse a document in
chunks should you wish. If one chunk ends half-way through a tag, quote,
comment, or whatever; it will remember this, and expect the next call to
parse to start with the remains of said tag.
If this is not going to be the case, be sure to call $hs->eof() between
calls to $hs->parse(). Alternatively, you may set 'auto_reset' to true on
the constructor or any time after with 'set_auto_reset', so that the parser
will always operate in one-shot basis (resetting after each parsed chunk). W+5lamb25 /devel:languages:perl / openSUSE_Leap_15.0 obs://build.opensuse.org/devel:languages:perl Artistic-1.0 or GPL-1.0+ Development/Libraries/Perl http://search.cpan.org/dist/HTML-Strip/ linux x86_64 g &