[LON-CAPA-cvs] cvs: loncom /xml lonxml.pm

www lon-capa-cvs@mail.lon-capa.org
Wed, 19 Feb 2003 14:55:27 -0000


www		Wed Feb 19 09:55:27 2003 EDT

  Modified files:              
    /loncom/xml	lonxml.pm 
  Log:
  Filter out x-tended HTML tags as produced by Claris Homepage, for example
  <x-claris-tagview>. Kept many documents from printing. Could not be dealt
  with by normal callsub mechanism, because Perl subroutine names must be 
  alphanumeric.
  
  
Index: loncom/xml/lonxml.pm
diff -u loncom/xml/lonxml.pm:1.235 loncom/xml/lonxml.pm:1.236
--- loncom/xml/lonxml.pm:1.235	Mon Feb 17 15:10:08 2003
+++ loncom/xml/lonxml.pm	Wed Feb 19 09:55:27 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # XML Parser Module 
 #
-# $Id: lonxml.pm,v 1.235 2003/02/17 20:10:08 sakharuk Exp $
+# $Id: lonxml.pm,v 1.236 2003/02/19 14:55:27 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -598,6 +598,8 @@
     my $sub1;
     no strict 'refs';
     my $tag=$token->[1];
+# get utterly rid of extended html tags
+    if ($tag=~/^x\-/i) { return ''; }
     my $space=$Apache::lonxml::alltags{$tag}[-1];
     if (!$space) {
      	$tag=~tr/A-Z/a-z/;