[LON-CAPA-dev] Re: [LON-CAPA-cvs] cvs: loncom /interface lonspreadsheet.pm
Guy Albertelli II
lon-capa-dev@mail.lon-capa.org
Mon, 2 Dec 2002 16:59:49 -0500 (EST)
Hi All,
> Bugfix for escaping of special characters. < and > must be
> translated to < and > before & is translated to &
> because the code gets unescaped by the browser twice. This
> current version works for cells like:
Please don't do HTML Entity encoding by hand.
There is a routine for doing this:
use HTML::Entities();
my $encoded=&Html::Entities::encode($string_to_go_to_browser);
--
guy@albertelli.com BM: n^20 t20 z20 qS
Guy Albertelli -7-7-7- O-
Well I best be going . . . crack don't smoke itself you know
-C.Chambers