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

Stefan Hornburg interchange-cvs at icdevgroup.org
Mon Aug 31 08:40:09 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  5a8f94a0a6e7f5908616bee3f2c9b6b1b2498d0b (commit)
      from  d1b3218584fb6cab1c20376e1f996c2157cb2fcf (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 5a8f94a0a6e7f5908616bee3f2c9b6b1b2498d0b
Author: Stefan Hornburg <racke at turtle.linuxia.ch>
Date:   Mon Aug 31 10:40:03 2009 +0200

    get rid of HTML comments


Summary of changes and diff:
 code/Filter/strip_html.filter |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/code/Filter/strip_html.filter b/code/Filter/strip_html.filter
index 7e14e88..87e6824 100644
--- a/code/Filter/strip_html.filter
+++ b/code/Filter/strip_html.filter
@@ -11,6 +11,9 @@ CodeDef strip_html Routine <<EOR
 sub {
     my $val = shift;
+	# get rid of HTML comments
+	$val =~ s/<!(?:--(?:[^-]*|-[^-]+)*--\s*)>//s;
     # replace these container tags with a space
     $val =~ s{</?(?:p|ol|ul|li|div|h[123456]|pre|dl|dd|dt|form|option|textarea|blockquote)(?:\s[^>]*)?>}{ }ig;


More information about the interchange-cvs mailing list