- LocalLib.git
- XMLSimple.pm
This file ( 506B ) exceeds the allowed full mode (48 kb) size.
The editor full hight is disabled, only scrolling is allowed..
If you wish to edit a file, it is recommended to use the scroll mode as some users do not like the full height
mode, although some users like it.
package Local::XMLSimple;
# patched to add single-apostrophe to escape_value()
use parent 'XML::Simple';
sub escape_value {
my($self, $data) = @_; # warn $data;
return '' unless(defined($data));
$data =~ s/&/&/sg;
$data =~ s/</</sg;
$data =~ s/>/>/sg;
$data =~ s/"/"/sg;
# added single-apostrophe:
$data =~ s/'/'/sg; # warn $data; # warn $level;
my $level = $self->{opt}->{numericescape} or return $data;
return $self->numeric_escape($data, $level);
}
1;