Simon AsikaforSIMULAR Lablab.simular.coยทJul 19, 2024[PHP] DOMElement insert custom HTML using Symfony DomCrawlerIn JavaScript, if we want to insert a custom HTML to an element, there is a convenience way that we can set it into the innerHTML. const el = document.querySelector('.foo'); el.innerHTML = `<div>FOO</div>`; But in PHP, although there has a DOM Docu...26 readsPHPAdd a thoughtful commentNo comments yetBe the first to start the conversation.