") + ''; //Other links sessionHTML += '
(http(s)?:\/\/)?([^\s]+\.)+[^\s]{2,}<\/p>$/gi; var url = item.Biographie.match(urlRegex); if (url) { // the string contains only a URL wrapped with
tags item.Biographie = url[0].replace(/<\/?p>/g, ''); // Remove
tags } if (item.Biographie.indexOf("linkedin.com") != -1) { returnHTML += '
tags returnHTML += '
'+spkTitle +', '+ spkOrg +'
'; } else{ returnHTML += ''+ spkOrg +'
'; } } else{ if(spkTitle != ""){ returnHTML += ''+spkTitle +'
'; } } var spkPresText = ""; if(item.Presentation_text_f !== null){ spkPresText = item.Presentation_text_f; } else if(item.Presentation_text !== null){ spkPresText = item.Presentation_text; } if(item.Presentation_link !== null){ var presentation_text = "Presentation"; if(item.Presentation_text !== null){ presentation_text = spkPresText; } returnHTML += ' '+presentation_text+''; } if(item.Presentation_ext !== null){ if(spkPresText != ""){ returnHTML += ' '+spkPresText+''; } else{ returnHTML += ' Presentation'; } } if(spkPresText != "" && (item.Presentation_link === null && item.Presentation_ext === null)){ returnHTML += ' ' + spkPresText + ''; } returnHTML += '") != -1){ panQuote = panBio.substring(panBio.indexOf('')+8); } else{ finalBio = panBio; } // //console.log(finalBio); modal.find('#spkTitle').html(speakerHeader); modal.find('#spkBio').html(finalBio); if(show_speaker_images != "No"){ modal.find('#spkImage').html(speakerImg); } else{ modal.find('#spkImage').addClass('hidden'); $("#spkBio").removeClass("col-lg-8").addClass("col-lg-12"); } modal.modal('show'); }); }); } function getYouTubeId(url) { var regExp = /^.*(?:youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|live\/)([^#\&\?]*).*/; var match = url.match(regExp); if (match && match[1].length === 11) { return match[1]; } else { return null; } } function replaceTitles(inputString, language) { // Define title replacements for French and Spanish const titleReplacements = { 'Mr.': { 'fr': 'M.', 'es': 'Sr.' }, 'Ms.': { 'fr': 'Mme', 'es': 'Sra.' }, 'Dr.': { 'fr': 'Dr', 'es': 'Dr.' } }; // Check if the input string contains titles to replace for (const title in titleReplacements) { if (inputString.includes(title)) { // Replace the title based on the specified language const replacement = titleReplacements[title][language]; inputString = inputString.replace(title, replacement); } } return inputString; }') + 7,panBio.indexOf('')); panQuote = ''; finalBio = panQuote + panBio.substring(panBio.indexOf(''+panQuote+'