Another DOMDocument-caused bug. DomQuery does not support SVG.
Current workaround I use is Strings::replace($html, '#<svg[^>]*+>.+?</svg>#s', '');
Our SVG code
<svg role="img" aria-label="" title="" class="shape shape-share-fb view-head button-icon">
<use xlink:href="#shape-share-fb"></use>
</svg>
Another DOMDocument-caused bug. DomQuery does not support SVG.
Current workaround I use is
Strings::replace($html, '#<svg[^>]*+>.+?</svg>#s', '');Our SVG code