Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DomQuery does not support SVG #354

JanTvrdik opened this issue Apr 11, 2017 · 1 comment

DomQuery does not support SVG #354

JanTvrdik opened this issue Apr 11, 2017 · 1 comment


Copy link

JanTvrdik commented Apr 11, 2017

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>
Copy link

genesiscz commented Feb 9, 2020

Is this getting a fix?

@dg dg closed this as completed in 0b33a93 Feb 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

No branches or pull requests

2 participants