summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB')
-rwxr-xr-xLedgerSMB/Form.pm37
1 files changed, 20 insertions, 17 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm
index 8b736e5c..73d9f4c5 100755
--- a/LedgerSMB/Form.pm
+++ b/LedgerSMB/Form.pm
@@ -1083,23 +1083,26 @@ sub format_string {
$format = 'tex';
}
- my %replace = ( 'order' => { html => [ '<', '>', '\n', '\r' ],
- txt => [ '\n', '\r' ],
- tex => [ quotemeta('\\'), '&', '\n',
- '\r', '\$', '%', '_', '#',
- quotemeta('^'), '{', '}', '<', '>',
- '?' ],
- utf => [ quotemeta('\\'), '&', quotemeta('\n'),
- '\r', '\$', '%', '_', '#',
- quotemeta('^'), '{', '}', '<', '>' ] },
- html => { '<' => '&lt;', '>' => '&gt;',
- '\n' => '<br />', '\r' => '<br />' },
- txt => { '\n' => "\n", '\r' => "\r" },
- tex => {'&' => '\&', '\$' => '\$', '%' => '\%', '_' => '\_',
- '#' => '\#', quotemeta('^') => '\^\\', '{' => '\{', '}' => '\}',
- '<' => '$<$', '>' => '$>$',
- '\n' => '\newline ', '\r' => '\newline ',
- '?' => '\pounds ', quotemeta('\\') => '/' } );
+ my %replace = (
+ 'order' => {
+ html => [ '<', '>', '\n', '\r' ],
+ txt => [ '\n', '\r' ],
+ tex => [ quotemeta('\\'), '&', '\n','\r',
+ '\$', '%', '_', '#',
+ quotemeta('^'), '{', '}', '<', '>', '£'
+ ],
+ utf => [ quotemeta('\\'), '&', quotemeta('\n'),
+ '\r', '\$', '%', '_', '#', quotemeta('^'),
+ '{', '}', '<', '>' ] },
+ html => { '<' => '&lt;', '>' => '&gt;','\n' => '<br />',
+ '\r' => '<br />' },
+ txt => { '\n' => "\n", '\r' => "\r" },
+ tex => {'&' => '\&', '\$' => '\$', '%' => '\%', '_' => '\_',
+ '#' => '\#', quotemeta('^') => '\^\\', '{' => '\{',
+ '}' => '\}', '<' => '$<$', '>' => '$>$',
+ '\n' => '\newline ', '\r' => '\newline ',
+ '£' => '\pounds ', quotemeta('\\') => '/'}
+ );
my $key;