my $msg_html = escapeHTML( $q->param( 'msg' ) // 'No msg' ); my $error_html = escapeHTML( $q->param( 'error' ) // 'No error' );