Skip to content

DomQuery does not support SVG #354

@JanTvrdik

Description

@JanTvrdik

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions