Open DraMaTiK opened 5 years ago
I confirm this issue in webpack-encore-bundle 1.7.
This error appear randomly in dev environnement.
Any news about this issue ?
I have the same error. How can you be so sure it is only in dev environment ?
So far I get such a problem only in a dev environment. For prod environment, everything works fine.
and for dev environment, I changed vendor/symfony/webpack-encore-bundle/src/Asset/TagRenderer.php:L:149 to
return sprintf('%s = "%s"', $key, htmlentities($value, ENT_COMPAT | ENT_XHTML, 'utf-8'));
Thanks for the solution, stil have the issue in webpack-encore-bundle 1.8.
Hope they will take this solution in next update because it's a lot ennoying !!
Hi @Valen78, you are free to send a pull request if it's really annoying for you.
I am having troubles after installing webpack-encore-bundle with those two packages :
After setting up them, I am having this error message :
The only one solution I found was to edit : vendor/symfony/webpack-encore-bundle/src/Asset/TagRenderer.php:L:149
Replace : return sprintf('%s="%s"', $key, htmlentities($value)); By this : return sprintf('%s="%s"', $key, htmlentities($value, ENT_QUOTES, 'utf-8'));