Browse Source

Fix for ampersand display problem in OPAC search results

This is a quick fix to XSLTParse4Display to make ampersands display
correctly in OPAC search results.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
3.2.x
Cindy Murdock Ames 14 years ago
committed by Galen Charlton
parent
commit
7c7794d838
  1. 1
      C4/XSLT.pm

1
C4/XSLT.pm

@ -136,6 +136,7 @@ sub XSLTParse4Display {
$sysxml .= "</sysprefs>\n";
$xmlrecord =~ s/\<\/record\>/$itemsxml$sysxml\<\/record\>/;
$xmlrecord =~ s/\& /\&amp\; /;
$xmlrecord=~ s/\&amp\;amp\; /\&amp\; /;
my $parser = XML::LibXML->new();
# don't die when you find &, >, etc

Loading…
Cancel
Save