diff --git a/datamodels/2.x/itop-portal-base/portal/templates/layout.html.twig b/datamodels/2.x/itop-portal-base/portal/templates/layout.html.twig index ec2ee8a0c..170988aff 100644 --- a/datamodels/2.x/itop-portal-base/portal/templates/layout.html.twig +++ b/datamodels/2.x/itop-portal-base/portal/templates/layout.html.twig @@ -476,8 +476,8 @@ sBody = '{{ 'Error:XHR:Fail'|dict_format(constant('ITOP_APPLICATION_SHORT'))|escape('js') }}'; } var oModalElem = $('#modal-for-alert'); - oModalElem.find('.modal-content .modal-header .modal-title').html(sTitle); - oModalElem.find('.modal-content .modal-body .alert').addClass('alert-danger').html(sBody); + oModalElem.find('.modal-content .modal-header .modal-title').text(sTitle); + oModalElem.find('.modal-content .modal-body .alert').addClass('alert-danger').text(sBody); oModalElem.modal('show'); }; {% endblock %}