From: hno <> Date: Mon, 25 Jun 2007 15:58:49 +0000 (+0000) Subject: Clean up HTML escapes in the configuration manual X-Git-Tag: SQUID_3_0_PRE7~198 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=590eb22fb92c3a7a6a36f0353e3374ff8320f918;p=thirdparty%2Fsquid.git Clean up HTML escapes in the configuration manual --- diff --git a/scripts/www/build-cfg-help.pl b/scripts/www/build-cfg-help.pl index a708ac0202..cc474afc55 100755 --- a/scripts/www/build-cfg-help.pl +++ b/scripts/www/build-cfg-help.pl @@ -10,7 +10,7 @@ use File::Basename; # # Adrian Chadd # -# $Id: build-cfg-help.pl,v 1.2 2007/05/21 23:31:37 hno Exp $ +# $Id: build-cfg-help.pl,v 1.3 2007/06/25 09:58:49 hno Exp $ # # The template file is reasonably simple to parse. There's a number of @@ -106,7 +106,10 @@ sub htmlescape($) { 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; }