$page_content{html_encode} = sub { return HTML::Entities::encode_entities(@_,'<>&"') };
$page_content{uri_escape} = sub { return URI::Escape::uri_escape(@_) };
$page_content{quotemeta} = sub { return quotemeta($_[0]) };
+$page_content{string2id} = sub { return &Packages::CGI::string2id(@_) };
print $input->header( -charset => $charset );
# return ( $start, $end );
#}
+sub string2id {
+ my $string = "@_";
+
+ $string =~ s/[^\w]/_/g;
+ return $string;
+}
+
our ( %url_params, %query_params );
sub init_url {