${news.title}
${news.caption}
const urlSearchParams = new URLSearchParams(window.location.search); const sourceURL = urlSearchParams.get('source'); // https://stackoverflow.com/a/8943487 const urlRegex = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig; (function (global) { var apps; global.setApps = array => apps = array; global.getAppWithBundleId = bundleId => apps?.find(app => app.bundleIdentifier == bundleId) ?? undefined; setUpBackButton(); })(this); const newsItemHTML = (news, minimal = false) => `
${news.caption}