You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl-cvs@perl.apache.org by do...@apache.org on 2002/03/26 15:56:15 UTC
cvs commit: modperl/Util Util.pm
dougm 02/03/26 06:56:15
Modified: Util Util.pm
Log:
Submitted by: Eric Cholet, Robin Berjon
Reviewed by: dougm
doc: Apache::Util::escape_html is only meant to escape US-ASCII text
Revision Changes Path
1.9 +4 -0 modperl/Util/Util.pm
Index: Util.pm
===================================================================
RCS file: /home/cvs/modperl/Util/Util.pm,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- Util.pm 4 Mar 2000 20:55:47 -0000 1.8
+++ Util.pm 26 Mar 2002 14:56:15 -0000 1.9
@@ -68,6 +68,10 @@
my $esc = Apache::Util::escape_html($html);
+This function will correctly escape US-ASCII output. If you are using
+a different character set such as UTF8, or need more control on
+the escaping process, use HTML::Entities.
+
=item escape_uri
This function replaces all unsafe characters in the $string with their