Add support for line breaks when displaying the service description in the frontend (#1004).

This commit is contained in:
Alex Tselegidis 2021-07-19 16:14:37 +03:00
parent 5a039f2757
commit c885b27f7d

View file

@ -745,7 +745,7 @@ window.FrontendBook = window.FrontendBook || {};
.appendTo($serviceDescription);
$('<span/>', {
'text': service.description
'html': GeneralFunctions.escapeHtml(service.description).replaceAll('\n', '<br/>')
})
.appendTo($serviceDescription);
}