1 2 function htmlToElement(html) 3 { 4 var template = document.createElement('template'); 5 html = html.trim(); // Never return a text node of whitespace as the result 6 template.innerHTML = html; 7 return template.content.firstChild; 8 } 9 10 var oldelement = document.getElementById('div-2d24889d'); 11 var newelement = htmlToElement(" <a rel=\"nofollow\" class=\"zone-habillage habillage\" target=\"_blank\" onclick=\"\" href=\"/l/123/0/habillage-capdagde26-uk\"><picture> <source srcset=\"/p/123/2/habillage-capdagde26-uk.webp\" media=\"(max-width: 768px)\" type=\"image/webp\"/> <source srcset=\"/p/123/2/habillage-capdagde26-uk.jpg\" media=\"(max-width: 768px)\" type=\"image/jpg\"/> <source srcset=\"/p/123/1/habillage-capdagde26-uk.webp\" media=\"(max-width: 1023px)\" type=\"image/webp\"/> <source srcset=\"/p/123/1/habillage-capdagde26-uk.jpg\" media=\"(max-width: 1023px)\" type=\"image/jpg\"/> <source srcset=\"/p/123/0/habillage-capdagde26-uk.webp\" type=\"image/webp\"> <img alt=\"Salon Cap d\'Agde\" src=\"/p/123/0/habillage-capdagde26-uk.jpg\" width=\"1800\" height=\"1200\"></picture></a>") 12 13 14 if (oldelement && newelement) 15 oldelement.parentNode.replaceChild(newelement, oldelement);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.