nystudio107 / generator-craftplugin

generator-craftplugin is a Yeoman generator for Craft CMS plugins
MIT License
73 stars 30 forks source link

&'s getting encoded in composer.json #18

Closed brandonkelly closed 7 years ago

brandonkelly commented 7 years ago

If your author name has an & (e.g. Pixel & Tonic) it will get encoded in the generated composer.json:

"name": "Pixel & Tonic",
khalwat commented 7 years ago

Looks like by default, EJS escapes html entities:

http://stackoverflow.com/questions/25177035/passing-html-tags-as-ejs-variables-value

khalwat commented 7 years ago

Fixed in 1.2.8: https://github.com/nystudio107/generator-craftplugin/releases/tag/1.2.8

Turns out you just use <%- instead of <%= to output unescaped values

Live now on https://pluginfactory.io/