easy_svg_tag_attributes()
Parses double-quoted attributes of one opening tag into name = value.
Function · Easy SVG · Status: Internal · Defined in includes/core-icon.php
Internal: not part of the promised public surface. It may change without notice.
Usage
easy_svg_tag_attributes( string $tag ): array
Example
$attrs = easy_svg_tag_attributes( '<path d="M0 0" fill="none"/>' );
Description
Parses double-quoted attributes of one opening tag into name => value. A helper of easy_svg_core_icon(), pure and without WordPress.
Related
Was this page helpful?