diff options
author | Peter Palfrader <peter@palfrader.org> | 2003-02-18 06:38:34 +0000 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2003-02-18 06:38:34 +0000 |
commit | 4a14e35aa72f11b04fac87d1ebc8cf8f1e2828e1 (patch) | |
tree | 6efaaa4a5a31a08e387bfd658630cd81cc14a4b7 /Echolot/Tools.pm | |
parent | 8008d99c22778c8735d4ad24352a61e2d7c17d84 (diff) |
List From: headers
Diffstat (limited to 'Echolot/Tools.pm')
-rw-r--r-- | Echolot/Tools.pm | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Echolot/Tools.pm b/Echolot/Tools.pm index 88dd0d2..9643d78 100644 --- a/Echolot/Tools.pm +++ b/Echolot/Tools.pm @@ -1,7 +1,7 @@ package Echolot::Tools; # (c) 2002 Peter Palfrader <peter@palfrader.org> -# $Id: Tools.pm,v 1.18 2003/02/16 10:24:45 weasel Exp $ +# $Id: Tools.pm,v 1.19 2003/02/18 06:38:09 weasel Exp $ # =pod @@ -204,6 +204,17 @@ sub write_meta_information($%) { return 1; }; +sub escape_HTML_entities($) { + my ($in) = @_; + + $in =~ s/&/&/; + $in =~ s/"/"/; + $in =~ s/</</; + $in =~ s/>/>/; + + return $in; +}; + sub write_HTML_file($$;$%) { my ($origfile, $template_file, $expire, %templateparams) = @_; |