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

svg() function sometimes produces invalid HTML #3025

robmcfadden opened this issue Jun 25, 2018 · 1 comment


None yet
2 participants
Copy link

commented Jun 25, 2018


The svg() function prepends a string to id attributes that sometimes starts with a number, which doesn't validate.

Steps to reproduce

The svg() function is used in a template and pulling an SVG from an assets field.

Additional info

  • Craft version: 3.0.9
  • PHP version: 7.1.16
  • Database driver & version: MySQL 5.7.22

This comment has been minimized.

Copy link

commented Jun 26, 2018

Fixed for today’s release – thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.