Call for Papers  

Author Guidelines

`; const parser = new DOMParser(); const doc = parser.parseFromString(phpHtmlString, 'text/html'); const anchorElements = doc.querySelectorAll('a[href^="/"]'); anchorElements.forEach((anchor) => { const hrefValue = anchor.getAttribute('href'); const modifiedHref = `https://www.eurekaselect.com${hrefValue}`; // Update the 'href' attribute of the anchor element anchor.setAttribute('href', modifiedHref); }); // Serialize the modified HTML document back to a string const updatedHtmlString = new XMLSerializer().serializeToString(doc); document.getElementById('ifa').innerHTML = updatedHtmlString;