diff --git a/js/functions.js b/js/functions.js index 09136ac1654c..000704fee625 100644 --- a/js/functions.js +++ b/js/functions.js @@ -56,6 +56,18 @@ $.ajaxPrefilter(function (options, originalOptions, jqXHR) { } }); +/** + * HTML escaping + */ +function escapeHtml(unsafe) { + return unsafe + .replace(/&/g, "&") + .replace(//g, ">") + .replace(/"/g, """) + .replace(/'/g, "'"); +} + /** * Hides/shows the default value input field, depending on the default type * Ticks the NULL checkbox if NULL is chosen as default value. @@ -3995,18 +4007,6 @@ function PMA_clearSelection() { } } -/** - * HTML escaping - */ -function escapeHtml(unsafe) { - return unsafe - .replace(/&/g, "&") - .replace(//g, ">") - .replace(/"/g, """) - .replace(/'/g, "'"); -} - /** * Print button */