summaryrefslogtreecommitdiff
path: root/lib/Pod
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-05-10 08:11:29 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-05-10 08:11:29 +0000
commitdb085819db02238c20a7d4facce19a8fa325b992 (patch)
tree3381002ad990bb14bf3ddb0ae28d2e5d44dd7b8c /lib/Pod
parentbbc711f90ce9892bd87879f2349f97d5af48573c (diff)
downloadperl-db085819db02238c20a7d4facce19a8fa325b992.tar.gz
escape ampersands in <pre> sections
p4raw-id: //depot/perl@3361
Diffstat (limited to 'lib/Pod')
-rw-r--r--lib/Pod/Html.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Pod/Html.pm b/lib/Pod/Html.pm
index 4fe7586025..cc770deb4a 100644
--- a/lib/Pod/Html.pm
+++ b/lib/Pod/Html.pm
@@ -1397,8 +1397,7 @@ sub process_puretext {
#
sub pre_escape {
my($str) = @_;
-
- $$str =~ s,&,&amp;,g;
+ $$str =~ s/&(?!\w+;|#)/&amp;/g; # XXX not bulletproof
}
#