--- loncom/interface/lonhtmlcommon.pm 2009/08/10 16:27:39 1.230 +++ loncom/interface/lonhtmlcommon.pm 2009/08/11 13:01:10 1.231 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common html routines # -# $Id: lonhtmlcommon.pm,v 1.230 2009/08/10 16:27:39 bisitz Exp $ +# $Id: lonhtmlcommon.pm,v 1.231 2009/08/11 13:01:10 droeschl Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2109,22 +2109,38 @@ sub inittags { } -# USAGE: scripttag(scriptcode, true/false); +# USAGE: scripttag(scriptcode, [start|end|both]); # # EXAMPLES: -# - scripttag("alert('Hello World!')") +# - scripttag("alert('Hello World!')", 'both') +# returns: +# # # NOTES: # - works currently only for javascripts # -# OUTPUT: Scriptcode properly enclosed in