[PHP] DOMElement insert custom HTML using Symfony DomCrawler
In 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...
lab.simular.co2 min read