[Mailman-Developers] Stripping HTML

Mikhail Zabaluev mhz@alt-linux.org
Tue, 12 Mar 2002 13:55:05 +0300


Hello James,

On Wed, Mar 06, 2002 at 10:32:32PM -0800, James J. Besemer wrote:
>
> Like Les said, simply removing all the formatting and leaving the original
> text would make almost everybody happy.  In my tiny corner of the world,
> 98% of the cases are where a naive user entered some regular text, only it
> got posted as HTML, so it shows up as purple 6 point text or some crap.
> 
> After a quick review of my HTML pocket ref, I'd say for extra credit I
> would handle the following cases specially:
> 
>     <A> -- echo the HREF
> 
>     <IMG> -- echo the ALT text
> 
>     <P> -- extra blank line
> 
> And that would about cover it.  The PhD version would format tables.

Sorry to ruin your PhD, but will the
"lynx -dump -assume-charset='$charset_from_header'" command serve fine?
I happily use it to display HTML in the Mutt pager pane.

-- 
Stay tuned,
  MhZ                                     JID: mookid@jabber.org
___________
To be trusted is a greater compliment than to be loved.