diff --git a/admin-dev/functions.php b/admin-dev/functions.php
index e1e037e2d..e58bb1169 100644
--- a/admin-dev/functions.php
+++ b/admin-dev/functions.php
@@ -30,7 +30,7 @@ require_once(dirname(__FILE__).'/../images.inc.php');
function bindDatepicker($id, $time)
{
if ($time)
- echo '
+ echo '
var dateObj = new Date();
var hours = dateObj.getHours();
var mins = dateObj.getMinutes();
@@ -42,7 +42,7 @@ function bindDatepicker($id, $time)
echo '
$(function() {
- $("#'.$id.'").datepicker({
+ $("#'.Tools::htmlentitiesUTF8($id).'").datepicker({
prevText:"",
nextText:"",
dateFormat:"yy-mm-dd"'.($time ? '+time' : '').'});
@@ -62,7 +62,7 @@ function includeDatepicker($id, $time = false)
echo '';
$iso = Db::getInstance()->getValue('SELECT iso_code FROM '._DB_PREFIX_.'lang WHERE `id_lang` = '.(int)Context::getContext()->language->id);
if ($iso != 'en')
- echo '';
+ echo '';
echo '