--- trunk/lib/Frey/Web.pm 2009/01/07 19:41:48 961 +++ trunk/lib/Frey/Web.pm 2009/01/09 14:52:58 968 @@ -3,7 +3,6 @@ with 'Frey::Session'; -#use Continuity::Widget::DomNode; use Data::Dump qw/dump/; use Carp qw/confess cluck carp/; use File::Slurp; @@ -83,6 +82,7 @@ sub html_escape { my ( $self, $html ) = @_; + return '' unless defined $html; $html =~ s/($escape_re)/$escape{$1}/g; return $html; }