--- loncom/interface/lonhtmlcommon.pm 2009/12/01 18:07:50 1.252
+++ loncom/interface/lonhtmlcommon.pm 2009/12/03 02:13:28 1.253
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common html routines
#
-# $Id: lonhtmlcommon.pm,v 1.252 2009/12/01 18:07:50 bisitz Exp $
+# $Id: lonhtmlcommon.pm,v 1.253 2009/12/03 02:13:28 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -72,6 +72,12 @@ sub coursepreflink {
}
}
+sub raw_href_to_link {
+ my ($message)=@_;
+ $message=~s/(https?\:\/\/[^\s\'\"]+)(\s|$)/$1<\/tt><\/a>$2/gi;
+ return $message;
+}
+
##############################################
##############################################