summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2015-12-17 15:41:45 +0100
committerPatrick Simianer <p@simianer.de>2015-12-17 15:41:45 +0100
commitc03f111ae6eac7b5b6ac2ad4635603eededcb6a3 (patch)
tree465a6d68ea31e116e05fc11a2e52d2f85af8e57e /js
parent19541176d3f93e0092ca91b1413cafeceda6784e (diff)
fix oov bug, better/fixed known rule handling
Diffstat (limited to 'js')
-rw-r--r--js/lfpe.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/lfpe.js b/js/lfpe.js
index 9185018..d8f45d0 100644
--- a/js/lfpe.js
+++ b/js/lfpe.js
@@ -205,8 +205,8 @@ function Next()
var src = [];
var tgt = [];
for (var i=0; i<l; i++) {
- src.push(trim(document.getElementById("oov_src"+i).value));
- tgt.push(trim(document.getElementById("oov_tgt"+i).value));
+ src.push(encodeURIComponent(trim(document.getElementById("oov_src"+i).value)));
+ tgt.push(encodeURIComponent(trim(document.getElementById("oov_tgt"+i).value)));
if (tgt[tgt.length-1] == "") { // empty correction
alert("Please provide translations for all words.");
//not_working();