diff --git a/.gitignore b/.gitignore index 2ca21fa..4459b25 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,3 @@ /*.alto vendor/* !vendor/Makefile -xsd/ diff --git a/web/index.html b/web/index.html index 249e471..cd417fd 100644 --- a/web/index.html +++ b/web/index.html @@ -81,7 +81,7 @@
diff --git a/web/ocr-schema.js b/web/ocr-schema.js index 28bb094..e5b6667 100644 --- a/web/ocr-schema.js +++ b/web/ocr-schema.js @@ -1,5 +1,11 @@ function escapeHTML(str) { - return str.replace(/&/g, '&').replace(//g, '>'); + return str. + replace(/&/g, '&'). + replace(//g, '>'); } function updateOptions() { $.ajax({ @@ -34,7 +40,6 @@ function handleClick(tabName, params) { type: 'GET', url: 'ocr-schema.php?do=' + tabName + '&' + params + "&url=" + url, success: function(data) { - console.log(data); $("#" + tabName + "-result pre code").html(escapeHTML(data)); $("#" + tabName + "-submit .spinning").addClass('hidden'); $("#" + tabName + "-result").removeClass('hidden');