The following module was proposed for inclusion in the Module List:
modid: HTML::AsText::Fix
DSLIP: bdphp
description: extends as_text() to render text properly
userid: SYP (Станислав Пусеп)
chapterid: 15 (World_Wide_Web_HTML_HTTP_CGI)
communities:
https://github.com/creaktive/HTML-AsText-Fix
similar:
HTML::FormatText
rationale:
Consider the following HTML sample:
<p> <span>AA/span BBB </p> <h2>CC<code>/h2</code> DDD <br> EEE
HTML::Element::as_text() method stringifies it as
"AAABBBCCCDDDEEE". Despite being correct, this is far from the
actual renderization within a "real" browser. links(1), lynx(1) &
w3m(1) break lines this way:
AAABBB CCC DDD EEE
This module tries to inject (via monkeypatching) the same behavior
into the method "as_text" in HTML::Element. This way, one can get
the expected behavior in modules that depend from HTML::Element (for
instance, Web::Scraper).
enteredby: SYP (Станислав Пусеп)
enteredon: Thu Jan 19 17:32:10 2012 GMT
The resulting entry would be:
HTML::AsText::
::Fix bdphp extends as_text() to render text properly SYP
Thanks for registering,
--
The PAUSE
PS: The following links are only valid for module list maintainers:
Registration form with editing capabilities:
https://pause.perl.org/pause/authenquery?ACTION=add_mod&USERID=ed600000_3d6354d7e5471d5f&SUBMIT_pause99_add_mod_preview=1
Immediate (one click) registration:
https://pause.perl.org/pause/authenquery?ACTION=add_mod&USERID=ed600000_3d6354d7e5471d5f&SUBMIT_pause99_add_mod_insertit=1
Peek at the current permissions:
https://pause.perl.org/pause/authenquery?pause99_peek_perms_by=me&pause99_peek_perms_query=HTML%3A%3AAsText%3A%3AFix