Index: program/lib/html2text.inc
===================================================================
--- program/lib/html2text.inc	(revision 5cc4b13a0c6d32d74d0cba17feeb6c5fbceaf25f)
+++ program/lib/html2text.inc	(revision ab6f8077e9b719db230798e658ba37f1f386b26b)
@@ -113,5 +113,5 @@
         '/<script[^>]*>.*?<\/script>/i',         // <script>s -- which strip_tags supposedly has problems with
         //'/<!-- .* -->/',                         // Comments -- which strip_tags might have problem a with
-        '/<a [^>]*href="([^"]+)"[^>]*>(.+?)<\/a>/ie', // <a href="">
+        '/<a [^>]*href=("|\')([^"\']+)\1[^>]*>(.+?)<\/a>/ie', // <a href="">
         '/<h[123][^>]*>(.+?)<\/h[123]>/ie',      // H1 - H3
         '/<h[456][^>]*>(.+?)<\/h[456]>/ie',      // H4 - H6
@@ -162,5 +162,5 @@
         '',                                     // <script>s -- which strip_tags supposedly has problems with
         //'',                                  // Comments -- which strip_tags might have problem a with
-        '$this->_build_link_list("\\1", "\\2")', // <a href="">
+        '$this->_build_link_list("\\2", "\\3")', // <a href="">
         "strtoupper(\"\n\n\\1\n\n\")",          // H1 - H3
         "ucwords(\"\n\n\\1\n\")",               // H4 - H6
