bug 5301: improve escaping of XML characters in bib output
authorGalen Charlton <gmcharlt@gmail.com>
Wed, 27 Oct 2010 12:24:04 +0000 (08:24 -0400)
committerChris Nighswonger <chris.nighswonger@gmail.com>
Wed, 3 Nov 2010 00:18:26 +0000 (20:18 -0400)
commitd6edcfa85e22485ea4b02d77ead1389231625e19
tree774e8ea263e6c79d5355e85710ba25669a5a9854
parente1bb59fc086a40d8b990b0aa4bb81db15c377619
bug 5301: improve escaping of XML characters in bib output

<, >, ', or " in an item call number will no longer make
the bib displays break when using XSLT mode.

Added a new routine to C4::Koha, xml_escape(), to implement
converting &, <, >, ', and " to their corresponding
entities.

Patch loosely based on work done by Daniel Latrémolière <daniel.latremoliere@bulac.fr>

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
C4/Koha.pm
C4/XSLT.pm
t/Koha.t