You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for reporting this issue. The behaviour you observe is indeed the result of feeding the non-closed <img> tag to htmlparser2 with the xmlMode option deployed. We use xmlMode in gulp-embed-svg in order to parse various SVG attributes, tags and properties correctly.
Once you adjust your image tag to close, your code will work, e.g. change line 36 in your source file to
<imgsrc="./img/icons/icon.svg" alt="" /> <!-- Notice the closing slash -->
It cuts all after svg embed.
Before:
After:
Gulp:
The text was updated successfully, but these errors were encountered: