emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

html2text


From: Alfred M. Szmidt
Subject: html2text
Date: Sun, 31 Oct 2004 19:25:39 +0100

html2text is quite nice, but it doesn't strip all HTML files into
something that is readable.  The following patch makes it strip some
"newer" tags that have croped up.  Though, it still doesn't make
things as nice as they could be, tables and comments are still left
intact.

I guess that a better way to do this is to convert all known tags to
something nice, and then just strip all remaining tags that are left.

diff -ur html2text.el html2text.el.new
--- html2text.el        2004-10-31 19:23:06.000000000 +0100
+++ html2text.el.new    2004-10-31 19:23:46.000000000 +0100
@@ -75,8 +75,10 @@
 
 (defvar html2text-format-tag-list
   '(("b"         . html2text-clean-bold)
+    ("strong"     . html2text-clean-bold)
     ("u"         . html2text-clean-underline)
     ("i"         . html2text-clean-italic)
+    ("em"         . html2text-clean-italic)
     ("blockquote" . html2text-clean-blockquote)
     ("a"          . html2text-clean-anchor)
     ("ul"         . html2text-clean-ul)

Diff finished.  Sun Oct 31 19:23:56 2004




reply via email to

[Prev in Thread] Current Thread [Next in Thread]