Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBarry Haddow <barry.haddow@gmail.com>2020-06-30 10:10:56 +0300
committerBarry Haddow <barry.haddow@gmail.com>2020-06-30 10:10:56 +0300
commit47915b561fb711973199daa2fc5a5f4dac3e22c7 (patch)
tree944cf29aedf09229a270d43943243920b6074525 /scripts/ems/support
parentd90a8df86240e4352d812d0c89d8c561e427c7e2 (diff)
escape ampersands
Diffstat (limited to 'scripts/ems/support')
-rwxr-xr-xscripts/ems/support/wrap-xml.perl1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/ems/support/wrap-xml.perl b/scripts/ems/support/wrap-xml.perl
index 52fc0c001..0beb8b921 100755
--- a/scripts/ems/support/wrap-xml.perl
+++ b/scripts/ems/support/wrap-xml.perl
@@ -32,6 +32,7 @@ while(<SRC>) {
$line = "" if $line =~ /NO BEST TRANSLATION/;
$line =~ s/</&lt;/g;
$line =~ s/>/&gt;/g;
+ $line =~ s/&/&amp;/g;
if (/<\/seg>/) {
s/(<seg[^>]+> *).*(<\/seg>)/$1$line$2/i;
$missing_end_seg = 0;