summaryrefslogtreecommitdiff
path: root/lib/Pod
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-02-28 18:49:08 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-02-28 18:49:08 +0000
commita3c03ba209b02672dbbaf6126566a46706d2337b (patch)
tree5ccdb01e9f2f8f8916717d8139eb504e394b5017 /lib/Pod
parentf19ae7a76ae03aca964bfc271ce674fffe816d24 (diff)
downloadperl-a3c03ba209b02672dbbaf6126566a46706d2337b.tar.gz
avoid escaping &amp; et al multiple times (variant of fix suggested by
James Cromie <jcromie@fossil.uswc.uswest.com> p4raw-id: //depot/perl@3031
Diffstat (limited to 'lib/Pod')
-rw-r--r--lib/Pod/Html.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Pod/Html.pm b/lib/Pod/Html.pm
index 9245315dbd..4fe7586025 100644
--- a/lib/Pod/Html.pm
+++ b/lib/Pod/Html.pm
@@ -1299,7 +1299,7 @@ WARN
sub html_escape {
my $rest = $_[0];
- $rest =~ s/&/&amp;/g;
+ $rest =~ s/&(?!\w+;|#)/&amp;/g; # XXX not bulletproof
$rest =~ s/</&lt;/g;
$rest =~ s/>/&gt;/g;
$rest =~ s/"/&quot;/g;