[interchange-cvs] [SCM] Interchange branch, master, updated. 5f4a9db51f0ab25128e02fc941a6a21376995984

Jon Jensen interchange-cvs at icdevgroup.org
Sun May 24 00:11:46 UTC 2009

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Interchange".

The branch, master has been updated
       via  5f4a9db51f0ab25128e02fc941a6a21376995984 (commit)
      from  d69ab85cb4262514236a96ca59b8c49516ee9646 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 5f4a9db51f0ab25128e02fc941a6a21376995984
Author: Jon Jensen <jon at endpoint.com>
Date:   Sat May 23 17:47:11 2009 -0600

    Strip all remaining HTML (not just b/i/u tags) to output plain text
    Make some attempt to ignore what can't be real HTML, to be tolerant of
    invalid HTML that contains unencoded < and > characters, so we don't
    remove huge sections that happen to start with < and end with > but aren't
    at all HTML taglike.


Summary of changes and diff:
 code/Filter/html2text.filter |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/code/Filter/html2text.filter b/code/Filter/html2text.filter
index 997b48b..954500b 100644
--- a/code/Filter/html2text.filter
+++ b/code/Filter/html2text.filter
@@ -1,20 +1,18 @@
-# Copyright 2002-2008 Interchange Development Group and others
+# Copyright 2002-2009 Interchange Development Group and others
 # Copyright 1996-2002 Red Hat, Inc.
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 # the Free Software Foundation; either version 2 of the License, or
 # (at your option) any later version.  See the LICENSE file for details.
-# $Id: html2text.filter,v 1.9 2008-06-30 23:53:44 jon Exp $
 CodeDef html2text Filter
 CodeDef html2text Description Simple html2text
 CodeDef html2text Routine <<EOR
 sub {
 	my $val = shift;
-	$val =~ s%</?(b|i|u)>%%gi;
 	$val =~ s%\s*<(?:br\s*/?|/?p[^>]*)>\s*%\n%gi;
+	$val =~ s%<[/!a-zA-Z].*?>%%gs;
 	return $val;


More information about the interchange-cvs mailing list