/* Hack using jQuery's text() method and a temporary element to escape html() utilizing jQuery. */ function escapeHtml(unsafe) { return $('
').text(unsafe).html(); } function renderClientList(data) { $.each(data, function(index, obj) { // render telegram button let telegramButton = '' if (obj.Client.telegram_userid) { telegramButton = `