diff options
author | Barry Haddow <barry.haddow@gmail.com> | 2020-06-30 10:10:56 +0300 |
---|---|---|
committer | Barry Haddow <barry.haddow@gmail.com> | 2020-06-30 10:10:56 +0300 |
commit | 47915b561fb711973199daa2fc5a5f4dac3e22c7 (patch) | |
tree | 944cf29aedf09229a270d43943243920b6074525 /scripts/ems/support | |
parent | d90a8df86240e4352d812d0c89d8c561e427c7e2 (diff) |
escape ampersands
Diffstat (limited to 'scripts/ems/support')
-rwxr-xr-x | scripts/ems/support/wrap-xml.perl | 1 |
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/</</g; $line =~ s/>/>/g; + $line =~ s/&/&/g; if (/<\/seg>/) { s/(<seg[^>]+> *).*(<\/seg>)/$1$line$2/i; $missing_end_seg = 0; |