Open
Description
Library version
1.7.2
Laravel version
11.34.2
PHP version
8.3
Description
Consider this SVG icon:
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<title>Download</title>
...
If I render this SVG with:
<x-icon-download title="Download SVG"/>
It will output:
<svg title="Download SVG" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<title>Download SVG</title>
<title>Download</title>
...
</svg>
The <title> tag is now rendered twice, one which is already in the SVG icon itself, a second <title> tag is added by this package.
A solution would be to search for an existing title tag and update accordingly with the value given.
Steps to reproduce
See above.