--------------------- PatchSet 11501 Date: 2007/06/25 09:58:28 Author: hno Branch: HEAD Tag: (none) Log: Clean up HTML escapes in the configuration manual Members: scripts/www/build-cfg-help.pl:1.17->1.18 Index: squid/scripts/www/build-cfg-help.pl =================================================================== RCS file: /cvsroot/squid/squid/scripts/www/build-cfg-help.pl,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- squid/scripts/www/build-cfg-help.pl 21 May 2007 23:34:17 -0000 1.17 +++ squid/scripts/www/build-cfg-help.pl 25 Jun 2007 09:58:28 -0000 1.18 @@ -10,7 +10,7 @@ # # Adrian Chadd # -# $Id: build-cfg-help.pl,v 1.17 2007/05/21 23:34:17 hno Exp $ +# $Id: build-cfg-help.pl,v 1.18 2007/06/25 09:58:28 hno Exp $ # # The template file is reasonably simple to parse. There's a number of @@ -106,7 +106,10 @@ { my ($line) = @_; return "" if !defined $line; - $line =~ s/([^\w\s])/sprintf ("&#%d;", ord ($1))/ge; + $line =~ s/&/\&/g; + $line =~ s//\>/g; + $line =~ s/[^\x{20}-\x{7e}\s]/sprintf ("&#%d;", ord ($1))/ge; return $line; }