[LON-CAPA-cvs] cvs: loncom(branch_0_6) /xml lontexconvert.pm

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 17 Mar 2003 16:52:28 -0000


albertel		Mon Mar 17 11:52:28 2003 EDT

  Modified files:              (Branch: branch_0_6)
    /loncom/xml	lontexconvert.pm 
  Log:
  - backport of 1.18 (HTML entities decode)
  
  
Index: loncom/xml/lontexconvert.pm
diff -u loncom/xml/lontexconvert.pm:1.15 loncom/xml/lontexconvert.pm:1.15.2.1
--- loncom/xml/lontexconvert.pm:1.15	Wed Feb  5 17:50:44 2003
+++ loncom/xml/lontexconvert.pm	Mon Mar 17 11:52:28 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # TeX Conversion Module
 #
-# $Id: lontexconvert.pm,v 1.15 2003/02/05 22:50:44 albertel Exp $
+# $Id: lontexconvert.pm,v 1.15.2.1 2003/03/17 16:52:28 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -116,6 +116,7 @@
 sub to_convert {
     my ($string) = @_;
     $string=~s/\<br\s*\/?\>/ /g;
+    $string=&HTML::Entities::decode($string);
     return &converted(\$string);
 }